Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9ca4a398
Commit
9ca4a398
authored
Jun 26, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm use of deprecated webmock api in bamboo_service_spec
parent
ff72de88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/models/project_services/bamboo_service_spec.rb
spec/models/project_services/bamboo_service_spec.rb
+2
-2
No files found.
spec/models/project_services/bamboo_service_spec.rb
View file @
9ca4a398
...
@@ -217,13 +217,13 @@ describe BambooService, models: true, caching: true do
...
@@ -217,13 +217,13 @@ describe BambooService, models: true, caching: true do
end
end
def
stub_request
(
status:
200
,
body:
nil
)
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
(
WebMock
.
stub_request
(
:get
,
bamboo_full_url
).
to_return
(
status:
status
,
status:
status
,
headers:
{
'Content-Type'
=>
'application/json'
},
headers:
{
'Content-Type'
=>
'application/json'
},
body:
body
body:
body
)
)
.
with
(
basic_auth:
%w(mic password)
)
end
end
def
bamboo_response
(
result_key:
42
,
build_state:
'success'
,
size:
1
)
def
bamboo_response
(
result_key:
42
,
build_state:
'success'
,
size:
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment