升级到 Rails 5 rc1 后规范失败
Spec failing after upgrade to Rails 5 rc1
我有一个非常简单的规范,看起来像这样:
scenario 'show error message' do
expect(page).to have_text 'Invalid email or password.'
end
升级到 Rails 5 rc1 后失败:
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"
测试正在通过 Rails 5 beta3。
有什么想法吗?
电子邮件现已大写。在规范中更改它(或者,更好的是,使用更宽容的测试,这样就不会再发生)。
我有一个非常简单的规范,看起来像这样:
scenario 'show error message' do
expect(page).to have_text 'Invalid email or password.'
end
升级到 Rails 5 rc1 后失败:
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"
测试正在通过 Rails 5 beta3。
有什么想法吗?
电子邮件现已大写。在规范中更改它(或者,更好的是,使用更宽容的测试,这样就不会再发生)。