Sha256: 33d1c59fe3d19d76b43787adb38337389b95e4b2f3d55369ad767bab62c87f9f
Contents?: true
Size: 442 Bytes
Versions: 52
Compression:
Stored size: 442 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require 'set' describe "Set#initialize_copy" do before(:each) do @set = Set[1, 2, 3] end it "is private" do Set.should have_private_instance_method(:initialize_copy) end it "replaces all elements of self with the elements of the passed Set" do other = Set["1", "2", "3"] @set.send(:initialize_copy, other) @set.should == Set["1", "2", "3"] end end
Version data entries
52 entries across 52 versions & 2 rubygems