summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/false/or_spec.rb
blob: e2f4dbd90bc80d57bfb96b2d78166034927f44f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)

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