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.1.2 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.1.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.1.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.0.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-1.0.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.6.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.6.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.9 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.8 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.7 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.5 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.4 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.3 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.5.0 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.4.4 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.4.3 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.4.2 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.4.1 spec/lib/pact/matchers/unexpected_index_spec.rb
pact-support-0.4.0 spec/lib/pact/matchers/unexpected_index_spec.rb