mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
Newer versions of activerecord-jdbcsqlite3-adapter work without a specially named db driver in database.yml
This commit is contained in:
parent
f68f1c234d
commit
a179d7f366
11 changed files with 9 additions and 19 deletions
|
|
@ -42,13 +42,6 @@ end
|
|||
END
|
||||
end
|
||||
|
||||
When /^I configure the database connection for the application$/ do
|
||||
if RUBY_PLATFORM =~ /java/
|
||||
contents = File.read File.join(File.dirname(__FILE__), '..', '..', 'tmp', 'aruba', 'testapp', 'config', 'database.yml')
|
||||
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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue