Module: RSpec::SleepingKingStudios::Matchers::Description
- Included in:
- BaseMatcher, BuiltIn::IncludeMatcher
- Defined in:
- lib/rspec/sleeping_king_studios/matchers/description.rb
Overview
Reusable logic for building a matcher description across different versions of the base RSpec library.
Constant Summary collapse
- DEFAULT_EXPECTED_ITEMS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Object.new
Instance Method Summary collapse
-
#description ⇒ String
A short string that describes the purpose of the matcher.
Instance Method Details
#description ⇒ String
A short string that describes the purpose of the matcher.
20 21 22 23 24 25 26 |
# File 'lib/rspec/sleeping_king_studios/matchers/description.rb', line 20 def description desc = matcher_name.to_s desc << format_expected_items desc end |