Improve postgresql failover specs.
This commit is contained in:
parent
f1615c2148
commit
1c7b4381cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue