On 3 March 2011 21:57, djangst
<djangst-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Given a route "resources :orders," why does the following
(generated)
> functional test using a GET request work? Should it?
>
> # test/functional/orders_controller_test.rb
> test "should get create" do
> get :create # create action supports request method other than
> POST?
> assert_response :success
> end
>
> It isn''t really a problem, I''m just curious if
I''m missing something.
If I am interpreting the output from rake routes correctly then an
attempt to run a create action with GET will actually call the index
action, so it should succeed.
Colin
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.