railsチュートリアル9章9.13テストにてエラー

初学者で拙い質問ですが、ご助言いただけますと幸いです。
よろしくおねがいします

・現状/環境
railsチュートリアル9章9.13テストにてエラーが起こっています
https://railstutorial.jp/chapters/advanced_login?version=5.1#sec-forgetting_users
(私が取り組んでいるのは6版ですが有料な為、無料で閲覧可能な5版を掲載しております)

・やりたいこと
エラーを解消したい
可能であれば、エラーの読み方を御助言いただきたい

・実際に出てるエラーメッセージ 
FAIL["test_login_with_valid_information_followed_by_logout", #<Minitest::Reporters::Suite:0x00005642d2669d40 @name="UsersLoginTest">, 3.4953560870001184]
test_login_with_valid_information_followed_by_logout#UsersLoginTest (3.50s)
Expected at least 1 element matching "a[href="/login"]", found 0..
Expected 0 to be >= 1.
test/integration/users_login_test.rb:38:in `block in class:UsersLoginTest'

ERROR["test_authenticated?_should_return_false_for_a_user_with_nil_digest", #<Minitest::Reporters::Suite:0x00005642d1d41f88 @name="UserTest">, 3.6524492949999967]
test_authenticated?_should_return_false_for_a_user_with_nil_digest#UserTest (3.65s)
BCrypt::Errors::InvalidHash: BCrypt::Errors::InvalidHash: invalid hash
app/models/user.rb:32:in new' app/models/user.rb:32:in authenticated?'
test/models/user_test.rb:70:in `block in class:UserTest'

21/21: [===============================================================================================================] 100% Time: 00:00:03, Time: 00:00:03

・既に試したこと
エラー該当箇所(ここでは app/models/user.rb)を遡って9章始めより確認

コメントを投稿

0 コメント