diff options
author | Sean McGivern <sean@gitlab.com> | 2018-11-22 09:50:34 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-11-22 09:50:34 +0000 |
commit | 2bc4a17decf943123f5adff0ea624eef325d776d (patch) | |
tree | 2144d1399344696328ba6607803e9745749f8ebb /spec/support | |
parent | f0630090aaea98daef3582bc95efe3a43736a10f (diff) | |
parent | 5c131dac5e2e7fc85bcbef6c1c8e95912b7759d4 (diff) | |
download | gitlab-ce-2bc4a17decf943123f5adff0ea624eef325d776d.tar.gz |
Merge branch 'revert-fd6e3781' into 'master'
Revert "Merge branch 'revert-e2aa2177' into 'master'"
Closes #54267
See merge request gitlab-org/gitlab-ce!23237
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/gitaly.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/support/gitaly.rb b/spec/support/gitaly.rb deleted file mode 100644 index 614aaa73693..00000000000 --- a/spec/support/gitaly.rb +++ /dev/null @@ -1,16 +0,0 @@ -RSpec.configure do |config| - config.before(:each) do |example| - if example.metadata[:disable_gitaly] - # Use 'and_wrap_original' to make sure the arguments are valid - allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_wrap_original { |m, *args| m.call(*args) && false } - else - next if example.metadata[:skip_gitaly_mock] - - # Use 'and_wrap_original' to make sure the arguments are valid - allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_wrap_original do |m, *args| - m.call(*args) - !Gitlab::GitalyClient.explicit_opt_in_required.include?(args.first) - end - end - end -end |