Skip to content

Commit 22e932d

Browse files
committed
Specfix: expect only on the explicit flash-message
Previous test-data used a blob of text in multiple tags and was too brittle.
1 parent c45016e commit 22e932d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/sign_in_with_google_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@
5959
mock_auth('unknown_but_invalid_user')
6060

6161
click_link 'Sign in with Google'
62-
expect(page).to have_content "Sign in with GitHub Sign in with Google Account's email domain is not authorized for login. Please log in with an account from a trusted domain."
62+
expect(page).to have_text I18n.t('devise.google_login.domain_unauthorized')
6363
end
6464
end

0 commit comments

Comments
 (0)