mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
Rails 3.1 adds the Turn gem to the gemfile, which impacts the format that results are reported in, and we must verify that format
This commit is contained in:
parent
95eaa4af9a
commit
cc921652d0
2 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,7 @@ Feature: automatically load step definitions
|
|||
And I add "factory_girl_rails" from this project as a dependency
|
||||
And I configure the database connection for the application
|
||||
And I reset Bundler environment variable
|
||||
And I comment out gem "turn" from my Gemfile
|
||||
When I successfully run `bundle install`
|
||||
And I write to "db/migrate/1_create_users.rb" with:
|
||||
"""
|
||||
|
|
|
@ -48,3 +48,12 @@ When /^I configure the database connection for the application$/ do
|
|||
overwrite_file 'config/database.yml', contents.gsub('adapter: sqlite3', 'adapter: jdbcsqlite3')
|
||||
end
|
||||
end
|
||||
|
||||
When /^I comment out gem "([^"]*)" from my Gemfile$/ do |gem_name|
|
||||
in_current_dir do
|
||||
content = File.read('Gemfile')
|
||||
File.open('Gemfile', 'w') do |f|
|
||||
f.write content.sub(/gem ['"]#{gem_name}/, '#\1')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue