Commit 66aaecc7 authored by Gary Holtz's avatar Gary Holtz Committed by nmilojevic1

Adding changes from review

parent 0cd893d7
......@@ -225,7 +225,6 @@ class ProjectPolicy < BasePolicy
enable :set_note_created_at
enable :set_emails_disabled
enable :set_show_default_award_emojis
enable :set_squash_option
end
rule { can?(:guest_access) }.policy do
......
......@@ -3149,11 +3149,13 @@ RSpec.describe API::Projects do
end
it 'does not update an invalid squash_option' do
current_squash_option = project3.reload.squash_option
project_param = { squash_option: "jawn" }
put api("/projects/#{project3.id}", user), params: project_param
expect(response).to have_gitlab_http_status(:bad_request)
expect(project3.reload.squash_option).to eq(current_squash_option)
end
end
......
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