Sha256: b424566bbe8e1b203f80d80b94104c58498fd1abfcf09439b1380cc18a8ae002

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

module Sbmt
  module Pact
    module Matchers
      module V1
        class Equality < Sbmt::Pact::Matchers::Base
          def initialize(template)
            super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V1, kind: "equality", template: template)
          end

          def as_plugin
            "matching(equalTo, #{format_primitive(@template)})"
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbmt-pact-0.12.2 lib/sbmt/pact/matchers/v1/equality.rb
sbmt-pact-0.12.1 lib/sbmt/pact/matchers/v1/equality.rb
sbmt-pact-0.12.0 lib/sbmt/pact/matchers/v1/equality.rb