나는 초보자이고 다음 코드는 "홈 페이지"에 매핑 여부를 테스트하려고 : 나는 아래 블록과 제 1 및 제 2 "FILL_IN"를 교체해야하는지레일 루트 테스트
Rails.application.routes.draw do
root 'static_pages#home'
end
?
test "should get root" do
get FILL_IN
assert_response FILL_IN
end
도움을 주시면 감사하겠습니다.
가능한 중복 \ Listing 3.42의 _IN은 루트 경로에 대한 테스트를 작성한다.] (http : //stackoverflow.com/questions/39113739/by-filling-in-the-code-marked-fill-in-in-listing-3-42-write-a-test-for-the-root) –