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:
parent
0abd0b54f0
commit
9ec973f0ac
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue