aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-05 05:41:09 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-05 05:41:09 -0700
commitcb8ac7d377746e39cc512bb0fbfc6a667e91c0cd (patch)
tree3048c24fa7a968d9398b3a7f71e83c09d3ead2f7 /actionpack/test/controller
parent5534733f69d36312b1a4e34dee61b41504a2c9e2 (diff)
parent0303c2325fab253adf5e4a0b738cb469c048f008 (diff)
downloadrails-cb8ac7d377746e39cc512bb0fbfc6a667e91c0cd.tar.gz
rails-cb8ac7d377746e39cc512bb0fbfc6a667e91c0cd.tar.bz2
rails-cb8ac7d377746e39cc512bb0fbfc6a667e91c0cd.zip
Merge pull request #6957 from francois2metz/options_method
Add the options method to action_controller testcase.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/test_case_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb
index 49137946fe..f868451678 100644
--- a/actionpack/test/controller/test_case_test.rb
+++ b/actionpack/test/controller/test_case_test.rb
@@ -197,6 +197,11 @@ XML
assert_raise(NoMethodError) { head :test_params, "document body", :id => 10 }
end
+ def test_options
+ options :test_params
+ assert_equal 200, @response.status
+ end
+
def test_process_without_flash
process :set_flash
assert_equal '><', flash['test']