提交 e83d1537 编写于 作者: A Aaron Patterson

adding a test for the runner module [#6027 state:resolved]

上级 4395d493
require 'abstract_unit'
require 'action_dispatch/testing/integration'
module ActionDispatch
class RunnerTest < Test::Unit::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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册