2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Make rubocop happy.

This commit is contained in:
Guo Xiang Tan 2017-12-04 10:55:31 +08:00
parent 22140efa70
commit b18cc81609

View file

@ -153,8 +153,6 @@ describe ActiveRecord::ConnectionHandling do
describe '.verify_replica' do describe '.verify_replica' do
describe 'when database is not in recovery' do describe 'when database is not in recovery' do
it 'should raise the right error' do it 'should raise the right error' do
expect do expect do
ActiveRecord::Base.send(:verify_replica, ActiveRecord::Base.connection) ActiveRecord::Base.send(:verify_replica, ActiveRecord::Base.connection)
end.to raise_error(RuntimeError, "Replica database server is not in recovery mode.") end.to raise_error(RuntimeError, "Replica database server is not in recovery mode.")