Sha256: fc82ac133b99d71e15997f45f2be8b9775f1be466a08f6f0e770d586b78bdb7e
Contents?: true
Size: 712 Bytes
Versions: 73
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
73 entries across 73 versions & 1 rubygems