Sha256: 7af40ee1c7604c859ba1049326452ce2aaed085d2907046d0ea245bb26cab84c

Contents?: true

Size: 239 Bytes

Versions: 9

Compression:

Stored size: 239 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

9 entries across 9 versions & 1 rubygems

Version Path
duck_puncher-2.9.3 test/duck_puncher/object_test.rb
duck_puncher-2.9.2 test/duck_puncher/object_test.rb
duck_puncher-2.9.1 test/duck_puncher/object_test.rb
duck_puncher-2.9.0 test/duck_puncher/object_test.rb
duck_puncher-2.8.0 test/duck_puncher/object_test.rb
duck_puncher-2.7.0 test/duck_puncher/object_test.rb
duck_puncher-2.6.0 test/duck_puncher/object_test.rb
duck_puncher-2.5.1 test/duck_puncher/object_test.rb
duck_puncher-2.5.0 test/duck_puncher/object_test.rb