class method self.helper_method

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

self.helper_method(*methods)

No documentation comment.

Parameters

methods rest
Source
# File actionpack/lib/action_view/test_case.rb, line 91
      def helper_method(*methods)
        # Almost a duplicate from ActionController::Helpers
        methods.flatten.each do |method|
          master_helper_module.module_eval <<-end_eval
            def #{method}(*args, &block)                    # def current_user(*args, &block)
              _test_case.send(%(#{method}), *args, &block)  #   test_case.send(%(current_user), *args, &block)
            end                                             # end
          end_eval
        end
      end

Defined in actionpack/lib/action_view/test_case.rb line 91 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::TestCase

Type at least 2 characters to search.

↑↓ navigate · open · esc close