Following a rails tutorial but when off on a slight tangent and now cant get a test to pass.
Below is my routes file and my test file. The
, to: "static_pages#home", as: "home"
get 'static_pages/home', to: "static_pages#home", as: "home"
class StaticPagesControllerTest < ActionDispatch::IntegrationTest
test "should get home" do
test "should get help" do
test "should get test" do
static_pages_home_url is the default helper method for that route with controller
static_pages and action
home but you set the name as
home so your test should be
test "should get home" do get home_url assert_response :success end