Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add rdoc for a few matchers

  • Loading branch information...
commit ac14fe4ea965ec6132bed9e23195de9fc3687491 1 parent e81a69a
@dchelimsky dchelimsky authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/rspec/matchers.rb
View
3  lib/rspec/matchers.rb
@@ -196,14 +196,17 @@ def be(*args)
args.empty? ? Matchers::Be.new : equal(*args)
end
+ # Passes if actual is truthy (anything but false or nil)
def be_true
BeTrue.new
end
+ # Passes if actual is falsy (false or nil)
def be_false
BeFalse.new
end
+ # Passes if actual is nil
def be_nil
BeNil.new
end
Please sign in to comment.
Something went wrong with that request. Please try again.