diff options
Diffstat (limited to 'spec/lib/gitlab/database/count_spec.rb')
-rw-r--r-- | spec/lib/gitlab/database/count_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/database/count_spec.rb b/spec/lib/gitlab/database/count_spec.rb index 407d9470785..9efb84d664c 100644 --- a/spec/lib/gitlab/database/count_spec.rb +++ b/spec/lib/gitlab/database/count_spec.rb @@ -35,7 +35,7 @@ describe Gitlab::Database::Count do describe 'no permission' do it 'falls back to standard query' do - allow(described_class).to receive(:postgresql_estimate_query).and_raise(PG::InsufficientPrivilege) + allow(ActiveRecord::Base).to receive(:transaction).and_raise(PG::InsufficientPrivilege) expect(Project).to receive(:count).and_call_original expect(Identity).to receive(:count).and_call_original |