Sha256: 2cdb77032bca05841d81cd639d9275e8fb7f012c4f21fb31ee9d4600885c8ac4
Contents?: true
Size: 454 Bytes
Versions: 87
Compression:
Stored size: 454 Bytes
Contents
require 'spec_helper' describe Array do describe "to_dragonfly_unique_s" do it "should concatenate the to_s's of each of the elements" do [:a, true, 2, 5.2, "hello"].to_dragonfly_unique_s.should == 'atrue25.2hello' end it "should nest arrays" do [:a, [:b, :c], :d].to_dragonfly_unique_s.should == 'abcd' end it "should be empty if empty" do [].to_dragonfly_unique_s.should == '' end end end
Version data entries
87 entries across 87 versions & 3 rubygems