blob: 929a66628ca5935180fcef7dbcab285234b5ff9a (
plain)
1
2
3
4
5
6
7
8
9
|
RSpec.configure do |config|
config.before(:each) do |example|
if example.metadata[:skip_gitaly_mock]
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(false)
else
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
end
end
end
|