1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Do not run remove_connection in memory db test

This will make rake test_sqlite3_mem work again
This commit is contained in:
Rafael Mendonça França 2015-02-05 17:31:00 -02:00
parent 0abd0b54f0
commit 9ec973f0ac

View file

@ -93,14 +93,14 @@ class MultipleDbTest < ActiveRecord::TestCase
assert_not_equal Entrant.arel_engine.connection, Course.arel_engine.connection
end
def test_count_on_custom_connection
ActiveRecord::Base.remove_connection
assert_equal 1, College.count
ensure
ActiveRecord::Base.establish_connection :arunit
end
unless in_memory_db?
def test_count_on_custom_connection
ActiveRecord::Base.remove_connection
assert_equal 1, College.count
ensure
ActiveRecord::Base.establish_connection :arunit
end
def test_associations_should_work_when_model_has_no_connection
begin
ActiveRecord::Base.remove_connection