Sha256: 3c7275bbc60bab55fb284608e342fb5b64657c0c4c7a801bb0945045d2fc3aca

Contents?: true

Size: 546 Bytes

Versions: 73

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'
require 'support/shared_examples_for_request'
require 'pact/consumer/request'

module Pact
  describe Consumer::Request::Actual do
    it_behaves_like "a request"

    let(:raw_request) do
      {
        'method' => 'get',
        'path' => '/mallory'
      }
    end

    describe "from_hash" do
      context "when field are not defined" do
        subject { described_class.from_hash(raw_request) }
        it "raises an error" do
          expect{subject}.to raise_error KeyError
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

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