diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-11-16 15:02:33 +0100 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-11-19 14:40:53 +0100 |
commit | 4ca5eadddbc0518e8b038712479ce7c7f74a6548 (patch) | |
tree | 3f3ca298b62f7c355a200c09c4377650c42c550b /spec/support/gitaly.rb | |
parent | 35239a6aec84c47895ad6664a9b1075be12bd105 (diff) | |
download | gitlab-ce-4ca5eadddbc0518e8b038712479ce7c7f74a6548.tar.gz |
Remove duplicate tests for Gitaly
The disabling of Gitaly was basically stubbing `Feature.enabled?` call,
which was never triggered.
Diffstat (limited to 'spec/support/gitaly.rb')
-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 |