]> git.openstreetmap.org Git - rails.git/commitdiff
Add FactoryGirl
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Sep 2016 14:28:28 +0000 (15:28 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Sep 2016 14:28:28 +0000 (15:28 +0100)
Gemfile
Gemfile.lock
test/test_helper.rb

diff --git a/Gemfile b/Gemfile
index 07bb60c68858f7763df60f128b8a12e15829d237..27f457d03dce79b02c0a9e4a3cbf51b00439e749 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -109,5 +109,6 @@ group :development, :test do
   gem "jshint"
   gem "konacha"
   gem "poltergeist"
+  gem "factory_girl_rails"
   gem "coveralls", :require => false
 end
index d8c141f69c3bb08168887cc2d0b87b6c2e34097e..5a9456b35b34183b587e5567abda772e757a588b 100644 (file)
@@ -83,6 +83,11 @@ GEM
     erubis (2.7.0)
     execjs (2.7.0)
     exifr (1.2.4)
+    factory_girl (4.7.0)
+      activesupport (>= 3.0.0)
+    factory_girl_rails (4.7.0)
+      factory_girl (~> 4.7.0)
+      railties (>= 3.0.0)
     faraday (0.9.2)
       multipart-post (>= 1.2, < 3)
     fspath (2.1.1)
@@ -316,6 +321,7 @@ DEPENDENCIES
   dalli
   deadlock_retry (>= 1.2.0)
   dynamic_form
+  factory_girl_rails
   faraday
   htmlentities
   http_accept_language (~> 2.0.0)
index 0baf922704d24af5c7f3ecf7a32ef443868a479e..419ea18063bd5873197a3c1388fc31932a5f0256 100644 (file)
@@ -8,6 +8,8 @@ load "composite_primary_keys/fixtures.rb"
 
 module ActiveSupport
   class TestCase
+    include FactoryGirl::Syntax::Methods
+
     # Load standard fixtures needed to test API methods
     def self.api_fixtures
       # print "setting up the api_fixtures"