2016-05-12 116 views
0

後失敗我有很簡單的規範,看起來像這樣:規格升級到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" 

測試是路過on Rails的5素β3。

任何想法?

回答

1

電子郵件現在大寫。在規範中更改它(或者,更好的是,使用更寬容的測試,這樣不會再發生)。 OMG。

+0

OMG。謝謝。但爲什麼在過去的規範傳遞? –

+1

我猜他們改變了?通常會發生這種情況,比如'新版本'和其他東西。主要版本通常有這樣的深刻變化。 –