mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
Get suite green on Ruby 2.2.0
This commit is contained in:
parent
3488c767c7
commit
531e68193f
3 changed files with 10 additions and 9 deletions
2
Gemfile
2
Gemfile
|
@ -5,7 +5,7 @@ gemspec
|
|||
gem 'appraisal'
|
||||
gem 'aruba'
|
||||
gem 'coffee-rails'
|
||||
gem 'cucumber'
|
||||
gem 'cucumber', '1.3.19'
|
||||
gem 'jquery-rails'
|
||||
gem 'rake'
|
||||
gem 'rspec-rails'
|
||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -44,12 +44,12 @@ GEM
|
|||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.7.0)
|
||||
cucumber (1.3.15)
|
||||
cucumber (1.3.19)
|
||||
builder (>= 2.1.2)
|
||||
diff-lcs (>= 1.1.3)
|
||||
gherkin (~> 2.12)
|
||||
multi_json (>= 1.7.5, < 2.0)
|
||||
multi_test (>= 0.1.1)
|
||||
multi_test (>= 0.1.2)
|
||||
diff-lcs (1.2.5)
|
||||
erubis (2.7.0)
|
||||
execjs (2.0.2)
|
||||
|
@ -64,8 +64,8 @@ GEM
|
|||
thor (>= 0.14, < 2.0)
|
||||
json (1.8.1)
|
||||
minitest (5.3.4)
|
||||
multi_json (1.10.1)
|
||||
multi_test (0.1.1)
|
||||
multi_json (1.11.0)
|
||||
multi_test (0.1.2)
|
||||
rack (1.5.2)
|
||||
rack-test (0.6.2)
|
||||
rack (>= 1.0)
|
||||
|
@ -103,7 +103,7 @@ DEPENDENCIES
|
|||
appraisal
|
||||
aruba
|
||||
coffee-rails
|
||||
cucumber
|
||||
cucumber (= 1.3.19)
|
||||
factory_girl_rails!
|
||||
jquery-rails
|
||||
rake
|
||||
|
|
|
@ -4,6 +4,7 @@ Feature: automatically load step definitions
|
|||
When I successfully run `bundle exec rails new testapp`
|
||||
And I cd to "testapp"
|
||||
And I add "factory_girl_rails" from this project as a dependency
|
||||
And I add "test-unit" as a dependency
|
||||
And I run `bundle install` with a clean environment
|
||||
And I write to "db/migrate/1_create_users.rb" with:
|
||||
"""
|
||||
|
@ -15,7 +16,7 @@ Feature: automatically load step definitions
|
|||
end
|
||||
end
|
||||
"""
|
||||
When I run `bundle exec rake db:migrate --trace` with a clean environment
|
||||
When I run `bundle exec rake db:migrate` with a clean environment
|
||||
And I write to "app/models/user.rb" with:
|
||||
"""
|
||||
class User < ActiveRecord::Base
|
||||
|
@ -42,7 +43,7 @@ Feature: automatically load step definitions
|
|||
end
|
||||
end
|
||||
"""
|
||||
When I run `bundle exec rake test --trace` with a clean environment
|
||||
When I run `bundle exec rake test` with a clean environment
|
||||
Then the output should contain "1 assertions, 0 failures, 0 errors"
|
||||
|
||||
Scenario: use factories advertised by railties/engines/3rd-party gems
|
||||
|
@ -80,5 +81,5 @@ Feature: automatically load step definitions
|
|||
end
|
||||
end
|
||||
"""
|
||||
When I run `bundle exec rake test --trace` with a clean environment
|
||||
When I run `bundle exec rake test` with a clean environment
|
||||
Then the output should contain "1 assertions, 0 failures, 0 errors"
|
||||
|
|
Loading…
Reference in a new issue