Sha256: 9be29cb1991246b714a687d4f629d0d1916fb4ce4ef606bd4a701e5d1b072ba5

Contents?: true

Size: 833 Bytes

Versions: 3

Compression:

Stored size: 833 Bytes

Contents

require 'spec_helper'
require 'pact_broker/ui/controllers/relationships'

require 'rack/test'

module PactBroker
  module UI
    module Controllers
      describe Relationships do

        include Rack::Test::Methods

        let(:app) { Relationships }

        describe "/" do
          describe "GET" do

            before do
              ProviderStateBuilder.new
                .create_consumer
                .create_provider
                .create_consumer_version
                .create_pact
                .create_webhook
                .create_verification
            end

            it "does something" do
              get "/"
              expect(last_response.body).to include("Pacts")
              expect(last_response.status).to eq(200)
            end

          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact_broker-2.0.5 spec/lib/pact_broker/ui/controllers/relationships_spec.rb
pact_broker-2.0.4 spec/lib/pact_broker/ui/controllers/relationships_spec.rb
pact_broker-2.0.3 spec/lib/pact_broker/ui/controllers/relationships_spec.rb