Sha256: dc71c04c3a5bdcdd02e132ff6800d11a3c623b511fbfc4fc95e6db27ad25abe1

Contents?: true

Size: 384 Bytes

Versions: 47

Compression:

Stored size: 384 Bytes

Contents

require 'test_helper'
require 'zip/ioextras'

class FakeIOTest < MiniTest::Test
  class FakeIOUsingClass
    include ::Zip::IOExtras::FakeIO
  end

  def test_kind_of?
    obj = FakeIOUsingClass.new

    assert(obj.kind_of?(Object))
    assert(obj.kind_of?(FakeIOUsingClass))
    assert(obj.kind_of?(IO))
    assert(!obj.kind_of?(Integer))
    assert(!obj.kind_of?(String))
  end
end

Version data entries

47 entries across 35 versions & 4 rubygems

Version Path
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/test/ioextras/fake_io_test.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/test/ioextras/fake_io_test.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rubyzip-1.2.1/test/ioextras/fake_io_test.rb
tdiary-5.0.5 vendor/bundle/gems/rubyzip-1.2.1/test/ioextras/fake_io_test.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/test/ioextras/fake_io_test.rb
tdiary-5.0.4 vendor/bundle/gems/rubyzip-1.2.1/test/ioextras/fake_io_test.rb
rubyzip-1.2.1 test/ioextras/fake_io_test.rb