Class: ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::SubMatchers::WithConcreteArguments

Inherits:
Arguments
  • Object
show all
Defined in:
lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb

Instance Attribute Summary

Attributes inherited from Base

#block_expectation_value, #matcher

Instance Method Summary collapse

Methods inherited from Arguments

#apply_stubs!, #failure_message, #failure_message_when_negated, #matches?, #printable_actual_arguments

Methods inherited from Base

#apply_stubs!, #does_not_match?, #failure_message, #failure_message_when_negated, #initialize, #matches?

Instance Method Details

#matches_arguments?(arguments) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb', line 14

def matches_arguments?(arguments)
  Utils.to_bool(arguments == inputs.expected_arguments)
end

#printable_expected_argumentsString

Returns:

  • (String)


21
22
23
# File 'lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb', line 21

def printable_expected_arguments
  "with `#{Arguments::Commands::GeneratePrintableArguments.call(arguments: inputs.expected_arguments)}`"
end