Sha256: 1700437477aa87a035db3795f552acd17040aece7a350414015d1e04752974bc

Contents?: true

Size: 386 Bytes

Versions: 121

Compression:

Stored size: 386 Bytes

Contents

require 'pact/matchers/base_difference'

module Pact
  module Matchers
    class TypeDifference < BaseDifference

      def as_json options = {}
        if KeyNotFound === actual
          {:EXPECTED_TYPE => expected.as_json, :ACTUAL => actual.as_json }
        else
          {:EXPECTED_TYPE => expected.as_json, :ACTUAL_TYPE => actual.as_json }
        end
      end
    end
  end
end

Version data entries

121 entries across 121 versions & 3 rubygems

Version Path
pact-support-1.21.2 lib/pact/matchers/type_difference.rb
pact-support-1.21.1 lib/pact/matchers/type_difference.rb
pact-support-1.21.0 lib/pact/matchers/type_difference.rb
pact-support-1.20.2 lib/pact/matchers/type_difference.rb
pact-support-1.20.1 lib/pact/matchers/type_difference.rb
pact-support-1.20.0 lib/pact/matchers/type_difference.rb
pact-support-1.19.0 lib/pact/matchers/type_difference.rb
pact-support-1.18.1 lib/pact/matchers/type_difference.rb
pact-support-1.18.0 lib/pact/matchers/type_difference.rb
hs-pact-support-1.17.1 lib/pact/matchers/type_difference.rb
pact-support-1.17.0 lib/pact/matchers/type_difference.rb
pact-support-1.16.10 lib/pact/matchers/type_difference.rb
pact-support-1.16.9 lib/pact/matchers/type_difference.rb
pact-support-1.16.8 lib/pact/matchers/type_difference.rb
pact-support-1.16.7 lib/pact/matchers/type_difference.rb
pact-support-1.16.6 lib/pact/matchers/type_difference.rb
pact-support-1.16.5 lib/pact/matchers/type_difference.rb
pact-support-1.16.4 lib/pact/matchers/type_difference.rb
pact-support-1.16.3 lib/pact/matchers/type_difference.rb
pact-support-1.16.2 lib/pact/matchers/type_difference.rb