we need to disable gitaly for some tests
This commit is contained in:
parent
3d24c01a19
commit
6545e56d92
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
RSpec.configure do |config|
|
||||
config.before(:each) do |example|
|
||||
next if example.metadata[:skip_gitaly_mock]
|
||||
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
|
||||
if example.metadata[:disable_gitaly]
|
||||
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(false)
|
||||
else
|
||||
next if example.metadata[:skip_gitaly_mock]
|
||||
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue