Sha256: fec5bf82ff7ee2fae771f28f653b822db925680ae9b4f7cf1be629814d7dfba8
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
require 'pact_broker/client/matrix' module PactBroker module Client describe Matrix do context "when the matrix resource is not found because the broker is the wrong version" do let(:matrix) { Matrix.new(base_url: 'http://example.org') } let!(:request) { stub_request(:get, /matrix/).to_return(status: 404) } it "raises a helpful error" do expect { matrix.get([{name: "Foo", version: "1"}]) }.to raise_error PactBroker::Client::Error, %r{Matrix resource not found at http://example.org/matrix} end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-client-1.8.0 | spec/lib/pact_broker/client/matrix_spec.rb |
pact_broker-client-1.7.0 | spec/lib/pact_broker/client/matrix_spec.rb |