Module: Spec::Expectations::MatcherHandlerHelper
- Included in:
- ExpectationMatcherHandler, NegativeExpectationMatcherHandler
- Defined in:
- lib/spec/expectations/handler.rb
Instance Method Summary collapse
Instance Method Details
#describe(matcher) ⇒ Object
5 6 7 |
# File 'lib/spec/expectations/handler.rb', line 5 def describe(matcher) matcher.respond_to?(:description) ? matcher.description : "[#{matcher.class.name} does not provide a description]" end |