Permalink
Browse files

Fix docs for 'should be' (passes if truthy, not 'not nil')

- Fixes #84.
  • Loading branch information...
dchelimsky committed Jul 14, 2011
1 parent 00fe65f commit 3d8cfc76c59ffe42921c4224fb2a25e055e1421a
Showing with 4 additions and 4 deletions.
  1. +3 −3 features/built_in_matchers/README.md
  2. +1 −1 features/built_in_matchers/be.feature
@@ -29,10 +29,10 @@
## Truthiness and existentialism
- actual.should be_true # passes if actual is anything but nil or false
- actual.should be_false # passes if actual is nil or false
+ actual.should be_true # passes if actual is truthy (not nil or false)
+ actual.should be_false # passes if actual is falsy (nil or false)
actual.should be_nil # passes if actual is nil
- actual.should be # passes if actual is not nil
+ actual.should be # passes if actual is truthy (not nil or false)
## Expecting errors
@@ -5,7 +5,7 @@ Feature: "be" matchers
obj.should be_true # passes if obj is truthy (not nil or false)
obj.should be_false # passes if obj is falsy (nil or false)
obj.should be_nil # passes if obj is nil
- obj.should be # passes if obj is not nil
+ obj.should be # passes if obj is truthy (not nil or false)
Scenario: be_true matcher
Given a file named "be_true_spec.rb" with:

0 comments on commit 3d8cfc7

Please sign in to comment.