diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-21 14:52:26 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-21 14:52:35 +0900 |
commit | 197d3e69d4e93067ab356db9df6df325e05fe4ef (patch) | |
tree | 0c40800dbfac9530946748563f9f58571277ab47 | |
parent | c5bce1dc90e936eb1a1c09a66fa09471cbcf3861 (diff) | |
download | gitlab-ce-fix-kube_client-proxy_url-exception.tar.gz |
Remove unnecessary `with` from `allow`fix-kube_client-proxy_url-exception
-rw-r--r-- | spec/features/projects/environments/environments_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/clusters/applications/prometheus_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb index c9be5f6ce54..f9defa22d35 100644 --- a/spec/features/projects/environments/environments_spec.rb +++ b/spec/features/projects/environments/environments_spec.rb @@ -48,7 +48,7 @@ feature 'Environments page', :js do let!(:application_prometheus) { create(:clusters_applications_prometheus, :installed, cluster: cluster) } before do - allow_any_instance_of(Kubeclient::Client).to receive(:proxy_url).with(anything, anything, anything, anything).and_raise(Kubeclient::HttpError.new(401, 'Unauthorized', nil)) + allow_any_instance_of(Kubeclient::Client).to receive(:proxy_url).and_raise(Kubeclient::HttpError.new(401, 'Unauthorized', nil)) end it 'should show one environment without error' do 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 |