summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-05-29 13:01:19 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-05-31 14:49:57 -0400
commite2651f3fe20c0f0e00f4d109c9634f4d6cb555e1 (patch)
tree03485ab7524cadb14b1dd717a1e1e147d8d902fa /spec/support
parenta3ebbebd5a0db2a9340ddd60fc3c1269604f6209 (diff)
downloadgitlab-ce-feature-flags-flipper.tar.gz
Use `Feature` gates on `Gitlab::GitalyClient.feature_enabled?`feature-flags-flipper
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/gitaly.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/gitaly.rb b/spec/support/gitaly.rb
index 7aca902fc61..2bf159002a0 100644
--- a/spec/support/gitaly.rb
+++ b/spec/support/gitaly.rb
@@ -1,6 +1,7 @@
if Gitlab::GitalyClient.enabled?
RSpec.configure do |config|
- config.before(:each) do
+ config.before(:each) do |example|
+ next if example.metadata[:skip_gitaly_mock]
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
end
end