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

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

Instance Method Summary collapse

Instance Method Details

#matches_arguments?(arguments) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb', line 19

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

#printable_expected_argumentsString

Returns:

  • (String)


26
27
28
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb', line 26

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