Browse files

Simplify the jdbc sqlite3 driver replacement

  • Loading branch information...
1 parent b34a554 commit b7f5c5d9d0a846e03c2381fc5a23ccefb6031fcd @mjankowski mjankowski committed Dec 19, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 features/step_definitions/rails_steps.rb
View
9 features/step_definitions/rails_steps.rb
@@ -44,12 +44,7 @@ class Testapp::Application
When /^I configure the database connection for the application$/ do
if RUBY_PLATFORM =~ /java/
- overwrite_file "config/database.yml", <<-END
-development: &development
- adapter: jdbcsqlite3
- database: db/test.sqlite3
-test:
- <<: *development
-END
+ 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

0 comments on commit b7f5c5d

Please sign in to comment.