Add FactoryGirl
This commit is contained in:
parent
dbeccba968
commit
d5013ad0d2
3 changed files with 9 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -109,5 +109,6 @@ group :development, :test do
|
||||||
gem "jshint"
|
gem "jshint"
|
||||||
gem "konacha"
|
gem "konacha"
|
||||||
gem "poltergeist"
|
gem "poltergeist"
|
||||||
|
gem "factory_girl_rails"
|
||||||
gem "coveralls", :require => false
|
gem "coveralls", :require => false
|
||||||
end
|
end
|
||||||
|
|
|
@ -83,6 +83,11 @@ GEM
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
exifr (1.2.4)
|
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)
|
faraday (0.9.2)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
fspath (2.1.1)
|
fspath (2.1.1)
|
||||||
|
@ -316,6 +321,7 @@ DEPENDENCIES
|
||||||
dalli
|
dalli
|
||||||
deadlock_retry (>= 1.2.0)
|
deadlock_retry (>= 1.2.0)
|
||||||
dynamic_form
|
dynamic_form
|
||||||
|
factory_girl_rails
|
||||||
faraday
|
faraday
|
||||||
htmlentities
|
htmlentities
|
||||||
http_accept_language (~> 2.0.0)
|
http_accept_language (~> 2.0.0)
|
||||||
|
|
|
@ -8,6 +8,8 @@ load "composite_primary_keys/fixtures.rb"
|
||||||
|
|
||||||
module ActiveSupport
|
module ActiveSupport
|
||||||
class TestCase
|
class TestCase
|
||||||
|
include FactoryGirl::Syntax::Methods
|
||||||
|
|
||||||
# Load standard fixtures needed to test API methods
|
# Load standard fixtures needed to test API methods
|
||||||
def self.api_fixtures
|
def self.api_fixtures
|
||||||
# print "setting up the api_fixtures"
|
# print "setting up the api_fixtures"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue