blob: f3ee1a343993df1ccf2a501899bcc68987c8a420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
describe "FalseClass#|" do
it "returns false if other is nil or false, otherwise true" do
(false | false).should == false
(false | true).should == true
(false | nil).should == false
(false | "").should == true
(false | mock('x')).should == true
end
end
|