Sha256: 5208c78643ce60a6959f9ee51e63b4aa6607003ad9091513ff45f593b201fd3d
Contents?: true
Size: 633 Bytes
Versions: 76
Compression:
Stored size: 633 Bytes
Contents
describe "Get integrations dot file" do before do TestDataBuilder.new .create_pact_with_hierarchy("Foo", "1", "Bar") end let(:path) { "/integrations" } let(:response_body_hash) { JSON.parse(subject.body, symbolize_names: true) } subject { get path, nil, {'HTTP_ACCEPT' => 'text/vnd.graphviz' }; last_response } it "returns a 200 OK" do expect(subject.status).to eq 200 end it "returns a dot file content type" do expect(subject.headers['Content-Type']).to eq 'text/vnd.graphviz;charset=utf-8' end it "returns dot file content" do expect(subject.body).to include "Foo -> Bar" end end
Version data entries
76 entries across 76 versions & 1 rubygems