diff options
Diffstat (limited to 'spec/ruby/core/false/to_s_spec.rb')
| -rw-r--r-- | spec/ruby/core/false/to_s_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/ruby/core/false/to_s_spec.rb b/spec/ruby/core/false/to_s_spec.rb index bb2bdb65af..9e24be26a2 100644 --- a/spec/ruby/core/false/to_s_spec.rb +++ b/spec/ruby/core/false/to_s_spec.rb @@ -1,7 +1,15 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "FalseClass#to_s" do it "returns the string 'false'" do false.to_s.should == "false" end + + it "returns a frozen string" do + false.to_s.should.frozen? + end + + it "always returns the same string" do + false.to_s.should.equal?(false.to_s) + end end |
