Skip to content

Commit e74a727

Browse files
committed
Lint: Fix Capybara/NegationMatcherAfterVisit
1 parent 441b6af commit e74a727

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/system/authentication_system_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171

7272
it 'denies access to the request for comment' do
7373
visit(rfc_path)
74-
expect(page).to have_no_current_path(rfc_path)
75-
expect(page).to have_no_content(request_for_comment.exercise.title)
7674
expect(page).to have_current_path(sign_in_path)
7775
expect(page).to have_content(I18n.t('application.not_signed_in'))
76+
expect(page).to have_no_current_path(rfc_path)
77+
expect(page).to have_no_content(request_for_comment.exercise.title)
7878
end
7979
end
8080

@@ -105,10 +105,10 @@
105105
it 'denies access to the request for comment' do
106106
mail.deliver_now
107107
visit(rfc_link)
108-
expect(page).to have_no_current_path(rfc_link)
109-
expect(page).to have_no_content(request_for_comment.exercise.title)
110108
expect(page).to have_current_path(sign_in_path)
111109
expect(page).to have_content(I18n.t('application.not_signed_in'))
110+
expect(page).to have_no_current_path(rfc_link)
111+
expect(page).to have_no_content(request_for_comment.exercise.title)
112112
end
113113
end
114114

0 commit comments

Comments
 (0)