Permalink
Browse files

Add to documentation

  • Loading branch information...
1 parent c44fee6 commit d9a2c8ff24b5d37d18a8cfe16c7eac2ef12ea4d2 @rentalcustard committed May 10, 2011
Showing with 5 additions and 0 deletions.
  1. +4 −0 lib/rspec/matchers.rb
  2. +1 −0 lib/rspec/matchers/matcher.rb
View
4 lib/rspec/matchers.rb
@@ -94,6 +94,10 @@ module RSpec
# description do
# # generate and return the appropriate string.
# end
+ # docstrings do
+ # # generate and return appropriate positive and negative
+ # # strings as a hash
+ # end
# end
#
# Each of the message-generation methods has access to the block arguments
View
1 lib/rspec/matchers/matcher.rb
@@ -93,6 +93,7 @@ def description(&block)
cache_or_call_cached(:description, &block)
end
+ # See RSpec::Matchers
def docstrings(&block)
cache_or_call_cached(:docstrings, &block)
end

0 comments on commit d9a2c8f

Please sign in to comment.