RSpec

Library providing tools for writing and running RSpec tests.

Class: RSpec::SleepingKingStudios::Matchers::Core::AliasMethodMatcher

Parent Namespace
RSpec::SleepingKingStudios::Matchers::Core
Inherited Classes
RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher > RSpec::SleepingKingStudios::Matchers::BaseMatcher > Object
Included Modules
RSpec::Matchers::Composable
Defined In
lib/rspec/sleeping_king_studios/matchers/core/alias_method_matcher.rb

Table Of Contents

Overview

Matcher for testing whether an object aliases a specified method using the specified other method name.

Since

Back To Top

Constants

DEFAULT_EXPECTED_ITEMS

= Object.new

Inherited From
RSpec::SleepingKingStudios::Matchers::Description

Since

Back To Top

Constructor

#initialize(original_name) => HaveAliasedMethodMatcher

Inherited From
RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher

Parameters

Returns

Since

Back To Top

Instance Attributes

#actual => Object (readonly)

Inherited From
RSpec::SleepingKingStudios::Matchers::BaseMatcher

Since

Back To Top

Instance Methods

#as(aliased_name) => AliasMethodMatcher

Inherited From
RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher

Specifies the name of the new method.

Parameters

Returns

Since

#description => Object

Inherited From
RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher

Since

#does_not_match? actual => Boolean

Inherited From
RSpec::SleepingKingStudios::Matchers::BaseMatcher

Inverse of #matches? method.

Parameters

Returns

See Also

Since

#failure_message => Object

Inherited From
RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher

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.

Since

#failure_message_when_negated => Object

Inherited From
RSpec::SleepingKingStudios::Matchers::BaseMatcher

Message for when the object matches, but was expected not to. Make sure to always call #matches? first to set up the matcher state.

Since

#matches?(actual) => Boolean

Tests the actual object to see if it matches the defined condition(s). Invoked by RSpec expectations.

Parameters

Returns

Since

Back To Top


Back to Documentation | Versions | 2.8.1 | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Matchers | RSpec::SleepingKingStudios::Matchers::Core