def test_should_create_category
login_as :admin
assert_difference Category, :count, 1 do
post :create, :category => { }
end
assert_redirected_to category_path(assigns(:category))
end
i get an error sayin
undefined method category_path
def test_should_create_category
login_as :admin
assert_difference Category, :count, 1 do
post :create, :category => { }
end
assert_redirected_to category_path(assigns(:category))
end
i get an error sayin
undefined method category_path
where is this defined??
where should i define it?
category_path and category_url is two methods that will be created by
ActionController::Routing if you have defined a named route category
like: