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.5.1 spec/lib/pact/consumer/request_spec.rb
pact-support-1.5.0 spec/lib/pact/consumer/request_spec.rb
pact-support-1.4.0 spec/lib/pact/consumer/request_spec.rb
pact-support-1.3.1 spec/lib/pact/consumer/request_spec.rb
pact-support-1.3.0 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.99.alpha.1 spec/lib/pact/consumer/request_spec.rb
pact-support-1.3.0.alpha.2 spec/lib/pact/consumer/request_spec.rb
pact-support-1.3.0.alpha.1 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.5 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.4 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.3 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.2 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.1 spec/lib/pact/consumer/request_spec.rb
pact-support-1.2.0 spec/lib/pact/consumer/request_spec.rb
pact-support-1.1.8 spec/lib/pact/consumer/request_spec.rb
pact-support-1.1.7 spec/lib/pact/consumer/request_spec.rb
pact-support-1.1.6 spec/lib/pact/consumer/request_spec.rb
pact-support-1.1.5 spec/lib/pact/consumer/request_spec.rb
pact-support-1.1.4 spec/lib/pact/consumer/request_spec.rb
pact-support-1.1.3 spec/lib/pact/consumer/request_spec.rb