Sha256: 4e0a7e161d85c68df6c29777180214a28e8d1cb571b88915fabbfee5026f52ff
Contents?: true
Size: 581 Bytes
Versions: 112
Compression:
Stored size: 581 Bytes
Contents
require 'pact_broker/client/matrix' module PactBroker module Client describe Matrix do let(:matrix) { Matrix.new(base_url: 'http://example.org') } context "when the matrix resource is not found because the broker is the wrong version" do 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
112 entries across 112 versions & 1 rubygems