Sha256: cb89143262a6cb4d0a8f179ae0bf311b9456ab9bc907a3c36ba7915792b82c6f

Contents?: true

Size: 836 Bytes

Versions: 3

Compression:

Stored size: 836 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module RSpec
    module PrimitiveMatchers
      module Classes
        class DelegateTo
          module Entities
            module SubMatchers
              class WithConcreteArguments < SubMatchers::Arguments
                ##
                # @return [Boolean]
                #
                def matches_arguments?(arguments)
                  Utils.to_bool(arguments == inputs.expected_arguments)
                end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb
convenient_service-0.19.0 lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb
convenient_service-0.18.0 lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb