diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2013-12-25 15:24:25 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2013-12-25 15:24:25 +0530 |
commit | b9d79b1f5fde5c8933e841248261066d316b962e (patch) | |
tree | 8b9e983db992fc75ae1b4a7b153cc28451906bb8 /railties/test/application/rake | |
parent | f57e5f224bdc9f1d0b194a7c82d6debf76e66499 (diff) | |
download | rails-b9d79b1f5fde5c8933e841248261066d316b962e.tar.gz rails-b9d79b1f5fde5c8933e841248261066d316b962e.tar.bz2 rails-b9d79b1f5fde5c8933e841248261066d316b962e.zip |
using symbol instead of string in establish_connection
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index f5759d05fd..9a36d1ca01 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -153,7 +153,7 @@ module ApplicationTests `rails generate model book title:string; bundle exec rake db:migrate db:structure:dump db:test:load_structure` ActiveRecord::Base.configurations = Rails.application.config.database_configuration - ActiveRecord::Base.establish_connection 'test' + ActiveRecord::Base.establish_connection :test require "#{app_path}/app/models/book" #if structure is not loaded correctly, exception would be raised assert Book.count, 0 |