summaryrefslogtreecommitdiff
path: root/spec/ruby/core/true/to_s_spec.rb
blob: fa1b53a580c4d792c8f1212f427da640cfc4c1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../../spec_helper'

describe "TrueClass#to_s" do
  it "returns the string 'true'" do
    true.to_s.should == "true"
  end

  it "returns a frozen string" do
    true.to_s.should.frozen?
  end

  it "always returns the same string" do
    true.to_s.should equal(true.to_s)
  end
end