Library providing tools for writing and running RSpec tests.
Note: Prior to 2.7.0, this was named AliasMethodMatcher.
Matcher for testing whether an object aliases a specified method using the specified other method name.
RSpec::SleepingKingStudios::Matchers::Core::AliasMethodMatcher
DEFAULT_EXPECTED_ITEMS
= Object.new
#initialize(original_name) => HaveAliasedMethodMatcher
#actual => Object (readonly)
#as(aliased_name) => AliasMethodMatcher
Specifies the name of the new method.
#description => Object
#does_not_match? actual => Boolean
Inverse of #matches? method.
#failure_message => Object
Message for when the object does not match, but was expected to. Make sure to always call #matches? first to set up the matcher state.
#failure_message_when_negated => Object
Message for when the object matches, but was expected not to. Make sure to always call #matches? first to set up the matcher state.
#matches?(actual) => Boolean
Tests the actual object to see if it matches the defined condition(s). Invoked by RSpec expectations.
Back to Documentation | Versions | 2.8 | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Matchers | RSpec::SleepingKingStudios::Matchers::Core