Commit ff24e2f5 authored by Kerri Miller's avatar Kerri Miller

Remove extraneous test conditions

parent 394b57bc
...@@ -20,12 +20,7 @@ RSpec.describe API::ProjectApprovals do ...@@ -20,12 +20,7 @@ RSpec.describe API::ProjectApprovals do
get api(url, user) get api(url, user)
end end
it 'does not return null values for unmodified boolean fields' do it 'returns expected boolean values for merge request related attributes' 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
expect(json_response["disable_overriding_approvers_per_merge_request"]).to be false 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_author_approval"]).to be false
expect(json_response["merge_requests_disable_committers_approval"]).to be false expect(json_response["merge_requests_disable_committers_approval"]).to be false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment