aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/http/action_methods_test.rb
blob: 20bb53aca26c16bbdc3c9da317193057f5a74b13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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