Sha256: 8a3daa681eab5ee5845a278e4447ca673363b9b002335518ffe6256c4f6b3fea

Contents?: true

Size: 242 Bytes

Versions: 10

Compression:

Stored size: 242 Bytes

Contents

require_relative '../../test_helper'
DuckPuncher.punch! :Object

class ObjectTest < MiniTest::Test
  def test_clone!
    obj = Object.new
    cloned = obj.clone!
    assert_equal cloned.class, obj.class
    refute_equal cloned, obj
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
duck_puncher-2.15.0 test/lib/duck_puncher/object_test.rb
duck_puncher-2.14.1 test/lib/duck_puncher/object_test.rb
duck_puncher-2.14.0 test/lib/duck_puncher/object_test.rb
duck_puncher-2.13.0 test/lib/duck_puncher/object_test.rb
duck_puncher-2.12.1 test/lib/duck_puncher/object_test.rb
duck_puncher-2.12.0 test/lib/duck_puncher/object_test.rb
duck_puncher-2.11.0 test/lib/duck_puncher/object_test.rb
duck_puncher-2.10.2 test/lib/duck_puncher/object_test.rb
duck_puncher-2.10.1 test/lib/duck_puncher/object_test.rb
duck_puncher-2.10.0 test/lib/duck_puncher/object_test.rb