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.
rubocop:disable Style/Documentation
#be_a_failing_result(expected_class = nil) => Cuprum::RSpec::BeAResultMatcher
Asserts that the object is a result with status: :failure.
#be_a_passing_result(expected_class = nil) => Cuprum::RSpec::BeAResultMatcher
Asserts that the object is a Cuprum::Result with status: :success.
#be_a_result(expected_class = nil) => Cuprum::RSpec::BeAResultMatcher
Asserts that the object is a Cuprum::Result.
#be_callable => RSpec::Matchers::BuiltIn::RespondTo
Asserts that the command defines a :process method.
Back to Documentation | Versions | 1.2 | Reference | Cuprum | Cuprum::RSpec