Improve postgresql failover specs.

This commit is contained in:
Guo Xiang Tan 2017-10-26 15:53:57 +08:00
parent f1615c2148
commit 1c7b4381cc
1 changed files with 4 additions and 0 deletions

View File

@ -108,6 +108,10 @@ describe ActiveRecord::ConnectionHandling do
end
end
expect(postgresql_fallback_handler.masters_down.hash).to eq(
"default" => true
)
ActiveRecord::Base.unstub(:postgresql_connection)
postgresql_fallback_handler.initiate_fallback_to_master