Sha256: d779e02a9ba242033f61e966e2f31f2e87c35efdd588b75123b621dbe0fdca7b
Contents?: true
Size: 712 Bytes
Versions: 12
Compression:
Stored size: 712 Bytes
Contents
describe "retrieving tagged pact versions" do let(:path) { "/pacts/provider/Provider/consumer/Consumer/tag/prod"} subject { get(path) } let(:json_response_body) { JSON.parse(subject.body) } before do TestDataBuilder.new .create_consumer("Consumer") .create_provider("Provider") .create_consumer_version("1.2.3") .create_consumer_version_tag("prod") .create_pact .create_consumer_version("4.5.6") .create_pact end it "returns a 200 HAL JSON response" do expect(subject).to be_a_hal_json_success_response end it "returns the list of tagged pact versions" do expect(json_response_body["_links"]["pb:pact-versions"]).to be_a Array end end
Version data entries
12 entries across 12 versions & 1 rubygems