手動で検証できる非常に単純なリクエストでいくつかのテストが失敗し、合格する必要があります。
it { should have_selector('title', text: app_title('Sign in')) }
出力:
expected css "title" with text "CredSimple - Sign in" to return something
このメッセージに加えて、テストに合格できなかったというメッセージに加えて、rspecに何が発生したかを教えてください。表示されているページを出力するようにエンジンに指示するために使用できるディレクティブはありますか?何かのようなもの:
expected css "title" with text "CredSimple - Sign in" to return something **instead returned text "Wrong Page Title"**