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