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
ff24e2f5
Commit
ff24e2f5
authored
Mar 10, 2021
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extraneous test conditions
parent
394b57bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
ee/spec/requests/api/project_approvals_spec.rb
ee/spec/requests/api/project_approvals_spec.rb
+1
-6
No files found.
ee/spec/requests/api/project_approvals_spec.rb
View file @
ff24e2f5
...
...
@@ -20,12 +20,7 @@ RSpec.describe API::ProjectApprovals do
get
api
(
url
,
user
)
end
it
'does not return null values for unmodified boolean fields'
do
expect
(
project
.
disable_overriding_approvers_per_merge_request
).
to
be_nil
expect
(
project
.
merge_requests_author_approval
).
to
be_nil
expect
(
project
.
merge_requests_disable_committers_approval
).
to
be_nil
expect
(
project
.
require_password_to_approve
).
to
be_nil
it
'returns expected boolean values for merge request related attributes'
do
expect
(
json_response
[
"disable_overriding_approvers_per_merge_request"
]).
to
be
false
expect
(
json_response
[
"merge_requests_author_approval"
]).
to
be
false
expect
(
json_response
[
"merge_requests_disable_committers_approval"
]).
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