Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-05-21 08:52:26 +0300
committerShinya Maeda <shinya@gitlab.com>2018-05-21 08:52:35 +0300
commit197d3e69d4e93067ab356db9df6df325e05fe4ef (patch)
tree0c40800dbfac9530946748563f9f58571277ab47 /spec/models/clusters
parentc5bce1dc90e936eb1a1c09a66fa09471cbcf3861 (diff)
Remove unnecessary `with` from `allow`
Diffstat (limited to 'spec/models/clusters')
-rw-r--r--spec/models/clusters/applications/prometheus_spec.rb2
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