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