Sha256: e118d50652a1780d3b5d0eae8d3b48db50ad80ba5ee5c8323a3d4111c3b469e0
Contents?: true
Size: 332 Bytes
Versions: 4
Compression:
Stored size: 332 Bytes
Contents
describe "String#to_str" do it "returns self when self.class == String" do a = "a string" a.should equal(a.to_str) end it "returns a new instance of String when called on a subclass" do a = StringSpecs::MyString.new("a string") s = a.to_str s.should == "a string" s.should be_kind_of(String) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.22 | spec/core/string/to_str_spec.rb |
opal-0.3.21 | test/core/string/to_str_spec.rb |
opal-0.3.20 | test/core/string/to_str_spec.rb |
opal-0.3.19 | test/core/string/to_str_spec.rb |