aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/runner_test.rb
blob: 1709ab5f6d34ab5e7c66bea9d4ed06439241a878 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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_respond_to runner, :hi
      assert_respond_to runner, :x
    end
  end
end