tests/nil_class.fy in fancy-0.3.0 vs tests/nil_class.fy in fancy-0.3.1
- old
+ new
@@ -20,14 +20,14 @@
nil or: nil . should == false
}
it: "should be true for calling || with any non-nil value" for: '|| when: {
(nil || true) should == true
- (nil || 'foo) should == true
+ (nil || 'foo) should == 'foo
}
it: "should be nil for calling || with a nil value" for: '|| when: {
- (nil || nil) should == false
+ (nil || nil) should == nil
}
it: "should NOT call the block" for: 'if_true: when: {
nil if_true: { 'then } . should == nil
}