Sha256: 51b72fe5dc956fcdd16f689223317b5cd09c33d5cf82d6e04d59227a7f40a11f
Contents?: true
Size: 667 Bytes
Versions: 83
Compression:
Stored size: 667 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/shared/to_s' describe "Hash#to_s" do ruby_version_is "1.9" do it_behaves_like :to_s, :to_s end ruby_version_is ""..."1.9" do it "returns a string by calling Hash#to_a and using Array#join with default separator" do h = new_hash(:fun => 'x', 1 => 3, nil => "ok", [] => :y) h.to_a.to_s.should == h.to_s old, $, = $,, ':' h.to_a.to_s.should == h.to_s $, = old end end end
Version data entries
83 entries across 83 versions & 1 rubygems