Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.535 kB
require File.dirname(__FILE__) + '/../../spec_helper'
describe "String.new" do
it "returns an instance of String" do
str = String.new
str.should be_kind_of(String)
end
it "returns a fully-formed String" do
str = String.new
str.size.should == 0
str << "more"
str.should == "more"
end
it "returns a new string given a string argument" do
str1 = "test"
str = String.new(str1)
str.should be_kind_of(String)
str.should == str
str << "more"
str.should == "testmore"
end
end
Jump to Line
Something went wrong with that request. Please try again.