私はテストのないアプリケーションを持っています。今、それらを追加しようとしています (minitest-rails) が、何か問題があります。私は入力rails generate controller test test
しています:
require "minitest_helper"
class TestControllerTest < MiniTest::Rails::ActionController::TestCase
test "should get test" do
get :test
assert_response :success
end
end
今、私は入力rake test
していてExpected response to be a <success>, but was <301>
エラーが発生しています。問題はどこだ?
編集: 私のコントローラーのコード:
class TestController < ApplicationController
def test
end
end