Commit 71214e3a authored by Rémy Coutable's avatar Rémy Coutable

Fixes a spec that was passing on retry only

I believe 19672217 did change the permissions to allow maintainers to
change the `reject_unsigned_commits` and `commit_committer_check`
settings even when it's enabled globally, but the controller spec wasn't
change accordingly.

Interestingly, the specs were always failing on first try (expected),
but passed on retry, probably due to rspec-retry which doesn't
completely resets the state between retries.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 18700054
......@@ -81,7 +81,7 @@ RSpec.describe Projects::PushRulesController do
before do
project.add_maintainer(user)
end
it_behaves_like 'a setting with global default', rule_attr, updates: true, updates_when_global_enabled: false
it_behaves_like 'a setting with global default', rule_attr, updates: true
end
context 'as a developer user' do
......
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