aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-12-25 15:24:25 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-12-25 15:24:25 +0530
commitb9d79b1f5fde5c8933e841248261066d316b962e (patch)
tree8b9e983db992fc75ae1b4a7b153cc28451906bb8 /railties/test/application/rake
parentf57e5f224bdc9f1d0b194a7c82d6debf76e66499 (diff)
downloadrails-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.rb2
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