Class: FakeIOTest

Inherits:
MiniTest::Test
  • Object
show all
Defined in:
lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/fake_io_test.rb

Defined Under Namespace

Classes: FakeIOUsingClass

Instance Method Summary collapse

Instance Method Details

#test_kind_of?Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
15
16
17
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/ioextras/fake_io_test.rb', line 9

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?(Fixnum))
  assert(!obj.kind_of?(String))
end