From 7accc6976453bf4fe17c6d8881ad47337587ea01 Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Tue, 10 Jul 2018 01:19:32 +0200 Subject: Fix migration_helpers_spec --- spec/lib/gitlab/database/migration_helpers_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/gitlab/database/migration_helpers_spec.rb b/spec/lib/gitlab/database/migration_helpers_spec.rb index c993fa12803..28a03e6f6f6 100644 --- a/spec/lib/gitlab/database/migration_helpers_spec.rb +++ b/spec/lib/gitlab/database/migration_helpers_spec.rb @@ -48,7 +48,7 @@ describe Gitlab::Database::MigrationHelpers do allow(model).to receive(:transaction_open?).and_return(false) end - context 'using PostgreSQL' do + context 'using PostgreSQL', :postgresql do before do allow(Gitlab::Database).to receive(:postgresql?).and_return(true) allow(model).to receive(:disable_statement_timeout).and_call_original @@ -224,6 +224,7 @@ describe Gitlab::Database::MigrationHelpers do context 'using PostgreSQL' do before do + allow(Gitlab::Database).to receive(:postgresql?).and_return(true) allow(Gitlab::Database).to receive(:mysql?).and_return(false) end -- cgit v1.2.1