Class: ChefSpec::Matchers::IncludeAnyRecipeMatcher
- Inherits:
-
Object
- Object
- ChefSpec::Matchers::IncludeAnyRecipeMatcher
- Defined in:
- lib/chefspec/matchers/include_any_recipe_matcher.rb
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message ⇒ Object
- #failure_message_when_negated ⇒ Object
- #matches?(runner) ⇒ Boolean
Instance Method Details
#description ⇒ Object
8 9 10 |
# File 'lib/chefspec/matchers/include_any_recipe_matcher.rb', line 8 def description "include any recipe" end |
#failure_message ⇒ Object
12 13 14 |
# File 'lib/chefspec/matchers/include_any_recipe_matcher.rb', line 12 def "expected to include any recipe" end |
#failure_message_when_negated ⇒ Object
16 17 18 |
# File 'lib/chefspec/matchers/include_any_recipe_matcher.rb', line 16 def "expected not to include any recipes" end |
#matches?(runner) ⇒ Boolean
3 4 5 6 |
# File 'lib/chefspec/matchers/include_any_recipe_matcher.rb', line 3 def matches?(runner) @runner = runner !(loaded_recipes - run_list_recipes).empty? end |