マイRSpecのタイトルのテストをして失敗している:rspecタイトルテストに失敗しました、タイトルを設定していますか?
1) HomeController Get 'index should have the right title
Failure/Error: response.should have_selector("title",
expected following output to contain a <title>TitleTest</title> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
# ./spec/controllers/home_controller_spec.rb:13
私にHomeControllerがあります
デフ指数()= "TitleTest" 終了
私の見解 @title(application.html.erbを)は:
<title><%= @title %></title>
レールサーバーを実行すると、私のタイトルが設定されていることが示されます。何が間違っていますか?