Commit f08a2204 authored by Michael Kozono's avatar Michael Kozono

Refactor out variable

parent 6f3c744d
...@@ -27,9 +27,9 @@ module QA ...@@ -27,9 +27,9 @@ module QA
end end
context 'when developers and maintainers are allowed to push to a protected branch' do context 'when developers and maintainers are allowed to push to a protected branch' do
scenario 'a push by the owner succeeds' do let!(:protected_branch) { fabricate_branch(allow_to_push: true) }
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.name).to have_content(branch_name)
expect(protected_branch.push_allowance).to have_content('Developers + Maintainers') expect(protected_branch.push_allowance).to have_content('Developers + Maintainers')
......
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