summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-06-26 17:47:35 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2017-06-26 18:00:01 -0700
commit9ca4a3988b494e667d1e8cd71a7ac2fb598f618d (patch)
tree9077fd1dbdef7aa6734a9c75386ff26dd6ff1702
parentff72de88bbc0d3c2681620fb576bf0e8379bdb42 (diff)
downloadgitlab-ce-9ca4a3988b494e667d1e8cd71a7ac2fb598f618d.tar.gz
rm use of deprecated webmock api in bamboo_service_spec
-rw-r--r--spec/models/project_services/bamboo_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/project_services/bamboo_service_spec.rb b/spec/models/project_services/bamboo_service_spec.rb
index e62fd69e567..7b1a554d1fb 100644
--- a/spec/models/project_services/bamboo_service_spec.rb
+++ b/spec/models/project_services/bamboo_service_spec.rb
@@ -217,13 +217,13 @@ describe BambooService, models: true, caching: true do
end
def stub_request(status: 200, body: nil)
- bamboo_full_url = 'http://mic:password@gitlab.com/bamboo/rest/api/latest/result?label=123&os_authType=basic'
+ bamboo_full_url = 'http://gitlab.com/bamboo/rest/api/latest/result?label=123&os_authType=basic'
WebMock.stub_request(:get, bamboo_full_url).to_return(
status: status,
headers: { 'Content-Type' => 'application/json' },
body: body
- )
+ ).with(basic_auth: %w(mic password))
end
def bamboo_response(result_key: 42, build_state: 'success', size: 1)