Sha256: 5c576b1f603acad94d410e79aaa4ea2d1a2ddec5aab6c41acc102a5ab0309fc6

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 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" => "application/hal+json" }  }

  it { is_expected.to be_a_hal_json_success_response }

  it "returns a json body with embedded integrations" do
    expect(JSON.parse(subject.body)["_embedded"]["integrations"]).to be_a(Array)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact_broker-2.80.0 spec/features/get_integrations_spec.rb