From f6d47d0dee0cbbb49f778de9d196c3dae0dbce7f Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Tue, 10 Jul 2018 01:19:32 +0200 Subject: [PATCH] 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 @@ 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 @@ 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 -- GitLab