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

describe "TrueClass#===" do
  it "returns true for true" do
    (true === true).should == true
  end

  it "returns false for non-true object" do
    (true === 1).should == false
    (true === "").should == false
    (true === Object).should == false
  end
end