diff options
Diffstat (limited to 'actionpack/test/controller/http/action_methods_test.rb')
-rw-r--r-- | actionpack/test/controller/http/action_methods_test.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/actionpack/test/controller/http/action_methods_test.rb b/actionpack/test/controller/http/action_methods_test.rb new file mode 100644 index 0000000000..20bb53aca2 --- /dev/null +++ b/actionpack/test/controller/http/action_methods_test.rb @@ -0,0 +1,19 @@ +require 'abstract_unit' + +class ActionMethodsHTTPController < ActionController::HTTP + def one; end + def two; end + hide_action :two +end + +class ActionMethodsHTTPTest < ActiveSupport::TestCase + def setup + @controller = ActionMethodsHTTPController.new + end + + def test_action_methods + assert_equal Set.new(%w(one)), + @controller.class.action_methods, + "#{@controller.controller_path} should not be empty!" + end +end |