diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-07-13 10:07:04 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-07-13 10:48:42 -0700 |
commit | 829b20010d0ded17a84355c44047114327248818 (patch) | |
tree | 3bdd4b5ac1ad03c35bd21586d505cdbdca5dc245 /qa/qa/specs/features | |
parent | 6717643c30541a95eeb99202861c43eca7ffd9b4 (diff) | |
download | gitlab-ce-mk/fix-flaky-protected-branch-expectations.tar.gz |
Remove flaky and redundant expectationsmk/fix-flaky-protected-branch-expectations
Diffstat (limited to 'qa/qa/specs/features')
-rw-r--r-- | qa/qa/specs/features/repository/protected_branches_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qa/qa/specs/features/repository/protected_branches_spec.rb b/qa/qa/specs/features/repository/protected_branches_spec.rb index 4e593a69aae..c2de94516d9 100644 --- a/qa/qa/specs/features/repository/protected_branches_spec.rb +++ b/qa/qa/specs/features/repository/protected_branches_spec.rb @@ -21,11 +21,8 @@ module QA end context 'when developers and maintainers are allowed to push to a protected branch' do - let!(:protected_branch) { create_protected_branch(allow_to_push: true) } - it 'user with push rights successfully pushes to the protected branch' do - expect(protected_branch.name).to have_content(branch_name) - expect(protected_branch.push_allowance).to have_content('Developers + Maintainers') + create_protected_branch(allow_to_push: true) push = push_new_file(branch_name) |