Class: RSpec::SleepingKingStudios::Matchers::Core::AliasMethodMatcher
- Inherits:
-
HaveAliasedMethodMatcher
- Object
- BaseMatcher
- HaveAliasedMethodMatcher
- RSpec::SleepingKingStudios::Matchers::Core::AliasMethodMatcher
- Defined in:
- lib/rspec/sleeping_king_studios/matchers/core/alias_method_matcher.rb
Overview
Matcher for testing whether an object aliases a specified method using the specified other method name.
Constant Summary
Constants included from Description
Description::DEFAULT_EXPECTED_ITEMS
Instance Attribute Summary
Attributes inherited from BaseMatcher
Instance Method Summary collapse
-
#matches?(actual) ⇒ Boolean
Tests the actual object to see if it matches the defined condition(s).
Methods inherited from HaveAliasedMethodMatcher
#as, #description, #failure_message, #initialize
Methods inherited from BaseMatcher
#does_not_match?, #failure_message, #failure_message_when_negated
Methods included from Description
Constructor Details
This class inherits a constructor from RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher
Instance Method Details
#matches?(actual) ⇒ Boolean
Tests the actual object to see if it matches the defined condition(s). Invoked by RSpec expectations.
13 14 15 16 17 18 19 20 |
# File 'lib/rspec/sleeping_king_studios/matchers/core/alias_method_matcher.rb', line 13 def matches?(actual) SleepingKingStudios::Tools::CoreTools.deprecate( 'AliasMethodMatcher', message: 'Use a HaveAliasedMethodMatcher instead.' ) super end |