Cuprum

An opinionated implementation of the Command pattern for Ruby applications. Cuprum wraps your business logic in a consistent, object-oriented interface and features status and error management, composability and control flow management.

Module: Cuprum::RSpec::Matchers

Parent Namespace
Cuprum::RSpec
Defined In
lib/cuprum/rspec/be_a_result.rb

Table Of Contents

Overview

rubocop:disable Style/Documentation

Back To Top

Instance Methods

#be_a_failing_result(expected_class = nil) => Cuprum::RSpec::BeAResultMatcher

Asserts that the object is a result with status: :failure.

Parameters

Returns

#be_a_passing_result(expected_class = nil) => Cuprum::RSpec::BeAResultMatcher

Asserts that the object is a Cuprum::Result with status: :success.

Parameters

Returns

#be_a_result(expected_class = nil) => Cuprum::RSpec::BeAResultMatcher

Asserts that the object is a Cuprum::Result.

Returns

#be_callable => RSpec::Matchers::BuiltIn::RespondTo

Asserts that the command defines a :process method.

Returns

Back To Top


Back to Documentation | Versions | 1.2 | Reference | Cuprum | Cuprum::RSpec