Sha256: ef8445281f94cfbdfd81a2e771173f2e7afc8023386c73abdaf749145a041159

Contents?: true

Size: 429 Bytes

Versions: 84

Compression:

Stored size: 429 Bytes

Contents

require 'spec_helper'
require 'pact/matchers/regexp_difference'

module Pact
  module Matchers
    describe RegexpDifference do

      context "when a regexp is expected" do

        subject { RegexpDifference.new(/ap/, 'pear').as_json }

        it "indicates that the actual was indended 'to match'" do
          expect(subject).to eq({:EXPECTED_TO_MATCH => "/ap/", :ACTUAL => "pear"})
        end

      end

    end
  end
end

Version data entries

84 entries across 84 versions & 2 rubygems

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