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