diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-21 08:52:26 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-21 08:52:35 +0300 |
commit | 197d3e69d4e93067ab356db9df6df325e05fe4ef (patch) | |
tree | 0c40800dbfac9530946748563f9f58571277ab47 /spec/models | |
parent | c5bce1dc90e936eb1a1c09a66fa09471cbcf3861 (diff) |
Remove unnecessary `with` from `allow`
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/clusters/applications/prometheus_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/clusters/applications/prometheus_spec.rb b/spec/models/clusters/applications/prometheus_spec.rb index 52404b0e247..407e2fc598a 100644 --- a/spec/models/clusters/applications/prometheus_spec.rb +++ b/spec/models/clusters/applications/prometheus_spec.rb @@ -88,7 +88,7 @@ describe Clusters::Applications::Prometheus do context 'when cluster is not reachable' do before do - allow(kube_client).to receive(:proxy_url).with(anything, anything, anything, anything).and_raise(Kubeclient::HttpError.new(401, 'Unauthorized', nil)) + allow(kube_client).to receive(:proxy_url).and_raise(Kubeclient::HttpError.new(401, 'Unauthorized', nil)) end it 'returns nil' do |