tests/nil_class.fy in fancy-0.3.3 vs tests/nil_class.fy in fancy-0.4.0

- old
+ new

@@ -1,62 +1,62 @@ FancySpec describe: NilClass with: { - it: "should be false for calling and: with any value" for: 'and: when: { - nil and: true . should == nil - nil and: 'foo . should == nil - nil and: nil . should == nil - false and: true . should == false - false and: 'foo . should == false - false and: nil . should == false + it: "is false for calling and: with any value" with: 'and: when: { + nil and: true . is: nil + nil and: 'foo . is: nil + nil and: nil . is: nil + false and: true . is: false + false and: 'foo . is: false + false and: nil . is: false } - it: "should be nil/false for calling && with any value" for: '&& when: { - (nil && true) should == nil - (nil && 'foo) should == nil - (nil && nil) should == nil - (false && true) should == false - (false && 'foo) should == false - (false && nil) should == false + it: "is nil/false for calling && with any value" with: '&& when: { + (nil && true) is: nil + (nil && 'foo) is: nil + (nil && nil) is: nil + (false && true) is: false + (false && 'foo) is: false + (false && nil) is: false } - it: "should be true for calling or: with any non-nil value" for: 'or: when: { - nil or: true . should == true - nil or: 'foo . should == 'foo + it: "is true for calling or: with any non-nil value" with: 'or: when: { + nil or: true . is: true + nil or: 'foo . is: 'foo } - it: "should be nil/false for calling or: with a nil/false value" for: 'or: when: { - nil or: nil . should == nil - nil or: false . should == false + it: "is nil/false for calling or: with a nil/false value" with: 'or: when: { + nil or: nil . is: nil + nil or: false . is: false } - it: "should be true for calling || with any non-nil value" for: '|| when: { - (nil || true) should == true - (nil || 'foo) should == 'foo + it: "is true for calling || with any non-nil value" with: '|| when: { + (nil || true) is: true + (nil || 'foo) is: 'foo } - it: "should be nil for calling || with a nil value" for: '|| when: { - (nil || nil) should == nil + it: "is nil for calling || with a nil value" with: '|| when: { + (nil || nil) is: nil } - it: "should NOT call the block" for: 'if_true: when: { - nil if_true: { 'then } . should == nil + it: "does not call the block" with: 'if_true: when: { + nil if_true: { 'then } . is: nil } - it: "should not call the block" for: 'if_false: when: { - nil if_false: { 'false } . should == nil + it: "does not call the block" with: 'if_false: when: { + nil if_false: { 'false } . is: nil } - it: "should be nil" for: 'nil? when: { - nil nil? should == true + it: "is nil" with: 'nil? when: { + nil nil? is: true } - it: "should be false" for: 'false? when: { - nil false? should == false + it: "is false" with: 'false? when: { + nil false? is: false } - it: "should NOT be true" for: 'true? when: { - nil true? should == false + it: "is not true" with: 'true? when: { + nil true? is: false } - it: "should call the block if nil" for: 'if_nil: when: { - nil if_nil: { 'is_nil } . should == 'is_nil + it: "calls the block if nil" with: 'if_nil: when: { + nil if_nil: { 'is_nil } . is: 'is_nil } }