samedi 22 octobre 2016

Rails root test

I am trying to test whether the following code maps to the "home page":

Rails.application.routes.draw do
  root 'static_pages#home'
end

what should I replace the first and second "FILL_IN" with in the block below?

test "should get root" do
    get FILL_IN
    assert_response FILL_IN
end

Would appreciate your help!

Aucun commentaire:

Enregistrer un commentaire