Commit 6a459b54 authored by Sam Beckham's avatar Sam Beckham Committed by samdbeckham

Apply 2 suggestion(s) to 2 file(s)

parent cc7cce9c
...@@ -70,7 +70,7 @@ RSpec.describe 'Groups > Members > Leave group' do ...@@ -70,7 +70,7 @@ RSpec.describe 'Groups > Members > Leave group' do
visit group_group_members_path(group) visit group_group_members_path(group)
expect(find(:css, '.project-members-page li', text: user.name)).not_to have_selector(:css, 'a.btn-danger') expect(find(:css, '.project-members-page li', text: user.name)).to have_no_selector(:css, 'a.btn-danger')
end end
it 'owner can not leave the group by url param if they are the last owner', :js do it 'owner can not leave the group by url param if they are the last owner', :js do
......
...@@ -102,7 +102,7 @@ RSpec.describe 'Project members list' do ...@@ -102,7 +102,7 @@ RSpec.describe 'Project members list' do
visit_members_page visit_members_page
expect(page).not_to have_selector("#edit_project_member_#{project_member.id}") expect(page).not_to have_selector("#edit_project_member_#{project_member.id}")
expect(page).not_to have_selector("#project_member_#{project_member.id} .btn-danger") expect(page).to have_no_selector("#project_member_#{project_member.id} .btn-danger")
end end
end end
......
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