3
minitest로 컨트롤러를 테스트해야합니다. 나는 시도했다 :minitest : 정의되지 않은 메소드`get '
describe 'CommentsController' do
it "should get index" do
get :index
assert_response :success
end
end
및
class CommentsControllerTest < MiniTest::Unit::TestCase
def test_should_get_index
get :index
assert_response :success
end
end
하지만 내가 "정의되지 않은 메서드`얻을"오류
을 : 같이,
을 또는 : 그런 다음 테스트는 다음과 같아야합니다. – partydrone
사용중인 minitest-rails 버전에 따라 yes입니다. – blowmage