Sha256: 1fc5771eb751c13e8e4d25eaab48c3094264e836890231d64f0415d6b8c40b88
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
describe "Get WIP provider pacts" do subject { get path; last_response } let(:last_response_body) { JSON.parse(subject.body, symbolize_names: true) } let(:pact_links) { last_response_body[:_links][:'pb:pacts'] } context "when the provider exists" do before do TestDataBuilder.new .create_provider("Provider") .create_consumer("Consumer") .create_consumer_version("0.0.1") .create_pact end let(:path) { "/pacts/provider/Provider/wip" } it "returns a 200 HAL JSON response" do expect(subject).to be_a_hal_json_success_response end it "returns a list of links to the pacts" do expect(pact_links.size).to eq 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.25.0 | spec/features/get_wip_provider_pacts_spec.rb |
pact_broker-2.24.0 | spec/features/get_wip_provider_pacts_spec.rb |