Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify the jdbc sqlite3 driver replacement

  • Loading branch information...
commit b7f5c5d9d0a846e03c2381fc5a23ccefb6031fcd 1 parent b34a554
Matt Jankowski mjankowski authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 features/step_definitions/rails_steps.rb
9 features/step_definitions/rails_steps.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.