Sha256: d23fe07e36f4d04720d593e4ed8280af2055c3082a09f10dc5cfbe0a5f5023dd

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module RSpec
    module Matchers
      module Custom
        class DelegateTo
          module Entities
            class Matcher
              module Entities
                module Chainings
                  module SubMatchers
                    class WithConcreteArguments < Chainings::SubMatchers::Arguments
                      ##
                      # @return [Boolean]
                      #
                      def matches_arguments?(arguments)
                        Utils.to_bool(arguments == matcher.expected_arguments)
                      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.14.0 lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_concrete_arguments.rb
convenient_service-0.13.0 lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_concrete_arguments.rb