Rails チュートリアル Web サイトの例に従っていますが、統合テストを機能させるのに問題があります。具体的には、チュートリアルのセクション 8.4.2にリストされている 8.20 の例です。
以下のコードのsignup_path行にアクセスすると、次のエラーが表示されます。「未定義のローカル変数またはメソッド `signup_path'」
require 'spec_helper'
describe "Users" do
describe "signup" do
describe "failure" do
it "should not make a new user" do
visit signup_path
fill_in "Name", :with => ""
fill_in "Email", :with => ""
fill_in "Password", :with => ""
fill_in "Confirmation", :with => ""
click_button
response.should render_template("users/new")
response.should have_selector("div#error_explanation")
end
end
end
end
ただし、すべてのテストを一度に実行すると、エラーは発生しません。エラーは、その個々のテストを実行したときにのみ発生します。
私のプロジェクトはこちらのgithubで見ることができます
このエラーを修正するにはどうすればよいですか?