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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f2a57216
Commit
f2a57216
authored
Aug 28, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static-analysis failures with BeSuccessMatcher
Closes
https://gitlab.com/gitlab-org/gitlab-ee/issues/14001
parent
10dbe54b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
ee/spec/controllers/groups/cycle_analytics/events_controller_spec.rb
...trollers/groups/cycle_analytics/events_controller_spec.rb
+2
-2
ee/spec/controllers/groups/cycle_analytics_controller_spec.rb
...pec/controllers/groups/cycle_analytics_controller_spec.rb
+2
-2
ee/spec/controllers/projects/merge_requests_controller_spec.rb
...ec/controllers/projects/merge_requests_controller_spec.rb
+3
-3
No files found.
ee/spec/controllers/groups/cycle_analytics/events_controller_spec.rb
View file @
f2a57216
...
...
@@ -36,7 +36,7 @@ describe Groups::CycleAnalytics::EventsController do
},
format: :json
)
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
end
it
'calls service with specific params'
do
...
...
@@ -55,7 +55,7 @@ describe Groups::CycleAnalytics::EventsController do
},
format: :json
)
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
end
end
...
...
ee/spec/controllers/groups/cycle_analytics_controller_spec.rb
View file @
f2a57216
...
...
@@ -36,7 +36,7 @@ describe Groups::CycleAnalyticsController do
},
format: :json
)
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
end
it
'calls service with specific params'
do
...
...
@@ -56,7 +56,7 @@ describe Groups::CycleAnalyticsController do
},
format: :json
)
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
end
end
...
...
ee/spec/controllers/projects/merge_requests_controller_spec.rb
View file @
f2a57216
...
...
@@ -24,7 +24,7 @@ shared_examples 'approvals' do
it
'approves the merge request'
do
approvals
=
json_response
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
expect
(
approvals
[
'approvals_left'
]).
to
eq
1
expect
(
approvals
[
'approved_by'
].
size
).
to
eq
1
expect
(
approvals
[
'approved_by'
][
0
][
'user'
][
'username'
]).
to
eq
user
.
username
...
...
@@ -53,7 +53,7 @@ shared_examples 'approvals' do
approvals
=
json_response
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
expect
(
approvals
[
'approvals_left'
]).
to
eq
1
expect
(
approvals
[
'approved_by'
].
size
).
to
eq
1
expect
(
approvals
[
'approved_by'
][
0
][
'user'
][
'username'
]).
to
eq
approver
.
username
...
...
@@ -80,7 +80,7 @@ shared_examples 'approvals' do
it
'unapproves the merge request'
do
approvals
=
json_response
expect
(
response
).
to
be_success
expect
(
response
).
to
be_success
ful
expect
(
approvals
[
'approvals_left'
]).
to
eq
2
expect
(
approvals
[
'approved_by'
]).
to
be_empty
expect
(
approvals
[
'user_has_approved'
]).
to
be
false
...
...
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