Fix feature spec for project members leaving project

parent c76b4ce3
...@@ -23,8 +23,8 @@ feature 'Projects > Members > Member leaves project', feature: true do ...@@ -23,8 +23,8 @@ feature 'Projects > Members > Member leaves project', feature: true do
let!(:non_matching_protected_branch) { create(:protected_branch, authorize_user_to_push: other_user, authorize_user_to_merge: other_user, project: project) } let!(:non_matching_protected_branch) { create(:protected_branch, authorize_user_to_push: other_user, authorize_user_to_merge: other_user, project: project) }
context 'user leaves project' do context 'user leaves project' do
it "removes the user's branch permissions" do scenario "removes the user's branch permissions" do
click_link 'Leave Project' click_link 'Leave project'
expect(current_path).to eq(dashboard_projects_path) expect(current_path).to eq(dashboard_projects_path)
expect(matching_protected_branch.push_access_levels.where(user: user)).not_to exist expect(matching_protected_branch.push_access_levels.where(user: user)).not_to exist
......
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