Hi, just wondering why it makes sense to verify routing in an
AC::TestCase test.
class XX < ActionController::TestCase
it "returns an empty cart" do
post :create
...
end
end
If I have no routing set up:
Failure/Error: post :create, :format => "json"
No route matches {:controller=>"carts", :action=>"create"}
Since I only wanna test my controller action why would I need routing?
Any hints on this, or is this just a relict that can be removed?
Nick
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.