Sha256: 4a8c00955de2748bbbc6de5509bdfa3204e6ca6b37e5311035615c527cb4ad78

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

require_relative "../../test_helper"

module MinitestReportersTest
  class MinitestReporterPluginTest < Minitest::Test
    def test_delegates_io
      reporter = Minitest::Reporters::DefaultReporter.new
      io_handle = STDOUT
      dr = Minitest::Reporters::DelegateReporter.new([ reporter ], :io => io_handle)
      assert_equal io_handle, dr.io
      dr.send :all_reporters
      assert_equal io_handle, reporter.io
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
minitest-reporters-1.3.6 test/unit/minitest/minitest_reporter_plugin_test.rb
nullifyable-0.1.0 vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.5 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.5.beta1 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.4 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.3 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.2 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.2.beta2 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.2.beta1 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.1 test/unit/minitest/minitest_reporter_plugin_test.rb
minitest-reporters-1.3.1.beta1 test/unit/minitest/minitest_reporter_plugin_test.rb