Skip to content

Commit

Permalink
using symbol instead of string in establish_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
kuldeepaggarwal committed Dec 25, 2013
1 parent f57e5f2 commit b9d79b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activerecord/test/cases/adapter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_not_specifying_database_name_for_cross_database_selects
)
end
ensure
ActiveRecord::Base.establish_connection 'arunit'
ActiveRecord::Base.establish_connection :arunit
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion railties/test/application/rake/dbs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def db_test_load_structure
`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
Expand Down

0 comments on commit b9d79b1

Please sign in to comment.