diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-05-24 14:55:29 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-06-08 09:05:06 -0700 |
commit | f08a22044dbeed4c2ce036dd03ebbf803000823f (patch) | |
tree | 9a87de97bd7f8bc16439c4d397c71b15ef9ed1cd /qa | |
parent | 6f3c744d4276d5e08e56dcfe5b3cdf27daba8587 (diff) | |
download | gitlab-ce-f08a22044dbeed4c2ce036dd03ebbf803000823f.tar.gz |
Refactor out variable
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/repository/protected_branches_spec.rb | 4 |
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') |