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