diff options
Diffstat (limited to 'actionpack/test/controller/runner_test.rb')
-rw-r--r-- | actionpack/test/controller/runner_test.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/actionpack/test/controller/runner_test.rb b/actionpack/test/controller/runner_test.rb new file mode 100644 index 0000000000..1709ab5f6d --- /dev/null +++ b/actionpack/test/controller/runner_test.rb @@ -0,0 +1,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 |