spec: fix due to activestorage bump

This commit is contained in:
simon lehericey 2023-09-07 15:51:56 +02:00
parent 5534190c89
commit 894b91ed52

View file

@ -6,7 +6,7 @@ describe PingController, type: :controller do
context 'when base is un-plug' do
before do
allow(ActiveRecord::Base).to receive(:connected?).and_raise(ActiveRecord::ConnectionTimeoutError)
allow(ActiveRecord::Base).to receive(:connection).and_raise(ActiveRecord::ConnectionTimeoutError)
end
it { expect { subject }.to raise_error(ActiveRecord::ConnectionTimeoutError) }