Mateusz Urbański
Mateusz Urbański

Reputation: 7862

Spec failing after upgrade to Rails 5 rc1

I have very simple spec that looks like this:

scenario 'show error message' do
  expect(page).to have_text 'Invalid email or password.'
end

After upgrading to Rails 5 rc1 it fails:

  1) Sign in when email and password are invalid show error message
     Failure/Error: expect(page).to have_text 'Invalid email or password.'
       expected to find text "Invalid email or password." in "× Invalid Email or password. Sign in Please fill the form to sign in to your account * Email * Password Remember me (if this is a private computer) Forgot password? Copyright @ 2016"

Test are passing on Rails 5 beta3.

Any ideas?

Upvotes: 0

Views: 89

Answers (1)

Matthias Winkelmann
Matthias Winkelmann

Reputation: 16394

Email is now capitalized. Change it in the spec (or, better yet, use a more tolerant test so this doesn't happen again).

Upvotes: 1

Related Questions