aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/test/controller/runner_test.rb
blob: a96c9c519bb4a13075851439fe55275e7e22994a (plain) (tree)
1
2
3
4
5
6
7

                             

                                             

                     
                                            
















                                                         
# frozen_string_literal: true

require "abstract_unit"
require "action_dispatch/testing/integration"

module ActionDispatch
  class RunnerTest < ActiveSupport::TestCase
    class MyRunner
      include Integration::Runner

      def initialize(session)
        @integration_session = session
      end

      def hi; end
    end

    def test_respond_to?
      runner = MyRunner.new(Class.new { def x; end }.new)
      assert runner.respond_to?(:hi)
      assert runner.respond_to?(:x)
    end
  end
end