Re: [Rails] Functional test default methods

2011-03-03 Thread Colin Law
On 3 March 2011 21:57, djangst 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 met

[Rails] Functional test default methods

2011-03-03 Thread djangst
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 :succe