Skip to content

Commit

Permalink
Fix capybara rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 4, 2024
1 parent 28e8ae9 commit e91d377
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion spec/features/nav_dropdown_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end

it 'Does not show affiliated organization manage link' do
expect(page).not_to have_link 'Manage Best University'
expect(page).to have_no_link 'Manage Best University'
end

it 'Shows affiliated organization home link' do
Expand Down
12 changes: 6 additions & 6 deletions spec/features/providers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
visit organizations_url

# don't confuse "Edit" with "Edit Profile" in header nav
expect(page).not_to have_link('Edit', exact: true)
expect(page).not_to have_link 'Delete'
expect(page).not_to have_link 'New Organization'
expect(page).to have_no_link('Edit', exact: true)
expect(page).to have_no_link 'Delete'
expect(page).to have_no_link 'New Organization'
end
end

Expand All @@ -51,11 +51,11 @@
it 'lists some limited information about the org' do
visit organization_url(organization)

expect(page).not_to have_selector 'h2', text: 'Access Tokens'
expect(page).not_to have_selector 'h2', text: 'Users'
expect(page).to have_no_selector 'h2', text: 'Access Tokens'
expect(page).to have_no_selector 'h2', text: 'Users'

expect(page).to have_content '1297245.marc'
expect(page).not_to have_link 'Download'
expect(page).to have_no_link 'Download'
end
end

Expand Down
6 changes: 3 additions & 3 deletions spec/features/unprivileged_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
it 'lists some limited information about the org' do
visit organization_url(organization)

expect(page).not_to have_selector 'h2', text: 'Access Tokens'
expect(page).not_to have_selector 'h2', text: 'Users'
expect(page).to have_no_selector 'h2', text: 'Access Tokens'
expect(page).to have_no_selector 'h2', text: 'Users'

expect(page).to have_content '1297245.marc'
expect(page).not_to have_link 'Download'
expect(page).to have_no_link 'Download'
end
end
2 changes: 1 addition & 1 deletion spec/views/dashboard/summary.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@

it 'does not render the activity summary tabs on page 2 of uploads' do
assign(:uploads, Kaminari.paginate_array(uploads1).page(2))
expect(rendered).not_to have_css('ul#summary-tabs')
expect(rendered).to have_no_css('ul#summary-tabs')
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
it 'does not link to Provider home for consumer orgs' do
render

expect(view.content_for(:org_header)).not_to have_link 'Provider home'
expect(view.content_for(:org_header)).to have_no_link 'Provider home'
end
end
end

0 comments on commit e91d377

Please sign in to comment.