test "ほげほげさんの記事に行ける" do article = articles(:article1) visit_with_auth "/articles/#{article.id}", 'hogehoge_san' assert_equal "#{article.title} | みんなの日記サイト", title end この最後のtitleの意味がわからなくて時間を溶かしたんですが、Capybaraの提供するメソッドだった模様。 Class: Capybara::Node::Document — Documentation for teamcapybara/capybara (ma…