summaryrefslogtreecommitdiff
path: root/qa/qa
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa')
-rw-r--r--qa/qa/specs/features/repository/protected_branches_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/specs/features/repository/protected_branches_spec.rb b/qa/qa/specs/features/repository/protected_branches_spec.rb
index 84193359f2f..8600c9ce347 100644
--- a/qa/qa/specs/features/repository/protected_branches_spec.rb
+++ b/qa/qa/specs/features/repository/protected_branches_spec.rb
@@ -27,9 +27,9 @@ module QA
end
context 'when developers and maintainers are allowed to push to a protected branch' do
- scenario 'a push by the owner succeeds' do
- protected_branch = fabricate_branch(allow_to_push: true)
+ let!(:protected_branch) { fabricate_branch(allow_to_push: true) }
+ scenario 'a push by the owner succeeds' do
expect(protected_branch.name).to have_content(branch_name)
expect(protected_branch.push_allowance).to have_content('Developers + Maintainers')