aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/test_case_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add failing test case for #6053Andrew White2012-04-291-0/+21
|
* Don't convert params if the request isn't HTML - fixes #5341Andrew White2012-04-291-2/+40
|
* Merge session arg with existing session instead of overwritingAndrew White2012-04-281-0/+20
| | | | | | | | | | | | | | | | | | | | | | | This may break existing tests that are asserting the whole session contents but should not break existing tests that are asserting individual keys - e.g: class SomeControllerTest < ActionController::TestCase setup do session['user_id'] = 1 end test "some test" do get :some_action, nil, { 'another_var' => 2 } # This assertion will now fail assert_equal({ 'another_var' => 2 }, session) # This assertion will still pass assert_equal 2, session['another_var] end end Fixes #1529.
* Remove default match without specified methodJose and Yehuda2012-04-241-5/+5
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* assigns(:foo) should not convert @foo's keys to strings if it happens to be ↵Will Bryant2012-02-181-0/+5
| | | | a hash
* replacing the orderhash with hash for ruby-1.9ganesh2012-02-091-3/+2
|
* Rename test class and fix tests to keep consistencyCarlos Antonio da Silva2012-01-171-10/+10
| | | | Based on 50d23bc2bd3653b3c66e480c22ae97c5f7fd7f62.
* Remove rescue_action from compatibility module and testsCarlos Antonio da Silva2012-01-171-3/+0
|
* AC:TestCase::Behavior#head only accepts parameters as second argumentRafael Mendonça França2012-01-101-0/+4
|
* Whitespaces :scissors:Rafael Mendonça França2012-01-101-4/+4
|
* Fix ActionController::TestCase::Behavior.headRafael Mendonça França2012-01-101-0/+5
|
* Revert "remove deprecated API"Aaron Patterson2012-01-051-0/+7
| | | | This reverts commit f53c247d10acbaacb0d61824cfce888c4b0520d2.
* remove deprecated APIAaron Patterson2012-01-051-7/+0
|
* moving test_test.rb to test_case_test.rb for consistency.Nick Sutterer2012-01-031-0/+820