私はMichael HartlのRuby on Railsチュートリアル(Ch 3.3.2)を読んでいます。私は現在、失敗したテスト(RED)を作っています しかし、私はちょうど彼のstatic_pages_controller_test.rbがRuby on Railsの違いget:homeとstatic_pages_home_url
test "should get home" do
get :home
assert_response :success
end
を持っていることに気づいたと私は彼がしたすべてのものを踏襲しているが、鉱山があります。
test "should get home" do
get static_pages_home_url
assert_response :success
end
get:homeはget static_pages_home_urlと同じようです。
違いがありますか?