Skip to content

Commit

Permalink
Add specs for FalseClass#===
Browse files Browse the repository at this point in the history
  • Loading branch information
sampatbadhe authored and eregon committed Oct 31, 2022
1 parent 19d20e8 commit 632c4b9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/false/case_compare_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require_relative '../../spec_helper'

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

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

0 comments on commit 632c4b9

Please sign in to comment.