Sha256: ee53328038ac3df9ca2a0bcab9900ff20af15e82d87a8970e94f52086ee3c4e6

Contents?: true

Size: 423 Bytes

Versions: 85

Compression:

Stored size: 423 Bytes

Contents

require 'spec_helper'
require 'pact/matchers/unexpected_index'

module Pact
  describe UnexpectedIndex do

    describe "#as_json" do
      it "returns a string representation of the object" do
        expect(subject.as_json).to eq subject.to_s
      end
    end

    describe "#to_json" do
      it "serialises the object to JSON" do
        expect(subject.to_json).to eq "\"#{subject.to_s}\""
      end
    end

  end
end

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
pact-support-1.11.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.10.3 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.10.2 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.10.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.10.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.9.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.8.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.8.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.7.2 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.7.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.7.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.6 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.5 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.7.0.alpha.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.4 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.3 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.2 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.6.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.5.2 spec/lib/pact/matchers/unexpected_index_spec.rb