Sha256: f45308a458b610ea1fe424e41f35325b58a53ec21d8dd0ea82297e464005ebce

Contents?: true

Size: 473 Bytes

Versions: 2

Compression:

Stored size: 473 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activejob-lock-0.0.2 rails/actionpack/test/controller/runner_test.rb
activejob-lock-0.0.1 rails/actionpack/test/controller/runner_test.rb