2017-07-24 16:20:53 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-06 12:54:50 -04:00
|
|
|
require "abstract_unit"
|
|
|
|
require "action_dispatch/testing/integration"
|
2010-11-22 18:57:03 -05:00
|
|
|
|
|
|
|
module ActionDispatch
|
2012-01-05 20:01:45 -05:00
|
|
|
class RunnerTest < ActiveSupport::TestCase
|
2010-11-22 18:57:03 -05:00
|
|
|
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)
|
2018-01-24 21:14:10 -05:00
|
|
|
assert_respond_to runner, :hi
|
|
|
|
assert_respond_to runner, :x
|
2010-11-22 18:57:03 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|