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.17.0.pre.rc2 lib/pact/matchers/type_difference.rb
pact-support-1.17.0.pre.rc1 lib/pact/matchers/type_difference.rb
pact-support-1.16.1 lib/pact/matchers/type_difference.rb
pact-support-1.16.0 lib/pact/matchers/type_difference.rb
pact-support-1.15.5 lib/pact/matchers/type_difference.rb
pact-support-1.15.4 lib/pact/matchers/type_difference.rb
pact-support-1.15.3 lib/pact/matchers/type_difference.rb
pact-support-1.15.2 lib/pact/matchers/type_difference.rb
pact-support-1.15.1 lib/pact/matchers/type_difference.rb
pact-support-1.15.0 lib/pact/matchers/type_difference.rb
pact-support-1.14.3 lib/pact/matchers/type_difference.rb
pact-support-1.14.2 lib/pact/matchers/type_difference.rb
pact-support-1.14.1 lib/pact/matchers/type_difference.rb
pact-support-1.14.0 lib/pact/matchers/type_difference.rb
pact-support-1.13.0 lib/pact/matchers/type_difference.rb
pact-support-1.12.1 lib/pact/matchers/type_difference.rb
pact-support-1.12.0 lib/pact/matchers/type_difference.rb
pact-support-1.11.0 lib/pact/matchers/type_difference.rb
pact-support-1.10.3 lib/pact/matchers/type_difference.rb
pact-support-1.10.2 lib/pact/matchers/type_difference.rb