Sha256: d0d4b073e35dc57bf004ce1bbeccde8d57c77a4a2f71a602cdf5c35565a03097

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

# 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 runner.respond_to?(:hi)
      assert runner.respond_to?(:x)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-on-quails-0.1.0 actionpack/test/controller/runner_test.rb