Sha256: 374527e948bf1d11b60801ccb50a3ed0379889151be2be4598345b9c92aeb518
Contents?: true
Size: 268 Bytes
Versions: 71
Compression:
Stored size: 268 Bytes
Contents
describe "Kernel#Array" do it "returns an Array containing the argument if it responds to neither #to_ary nor #to_a" do obj = mock('obj') Array(obj).should == [obj] end it "returns an empty Array when passed nil" do Array(nil).should == [] end end
Version data entries
71 entries across 71 versions & 3 rubygems