Permalink
Browse files

doc: tweaks

  • Loading branch information...
1 parent 039baf5 commit 00fe65f19270bb25d3e3afe4b3528147365afa1e @dchelimsky dchelimsky committed Jul 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/expectations/extensions/kernel.rb
@@ -6,7 +6,7 @@ module Kernel
# @param [Matcher]
# matcher
# @param [String] message optional message to display when the expectation fails
- # @return [PositiveExpectationHandler]
+ # @return [Boolean] true if the expectation succeeds (else raises)
# @see RSpec::Matchers
def should(matcher=nil, message=nil, &block)
RSpec::Expectations::PositiveExpectationHandler.handle_matcher(self, matcher, message, &block)
@@ -18,7 +18,7 @@ def should(matcher=nil, message=nil, &block)
# @param [Matcher]
# matcher
# @param [String] message optional message to display when the expectation fails
- # @return [NegativeExpectationHandler]
+ # @return [Boolean] false if the negative expectation succeeds (else raises)
# @see RSpec::Matchers
def should_not(matcher=nil, message=nil, &block)
RSpec::Expectations::NegativeExpectationHandler.handle_matcher(self, matcher, message, &block)

0 comments on commit 00fe65f

Please sign in to comment.