Sha256: 74b6e677715bce1e4a37bfb0c63addc1fff8d8c108852bf30710ba88a2de03ee

Contents?: true

Size: 602 Bytes

Versions: 12

Compression:

Stored size: 602 Bytes

Contents

require "pact_broker/ui/controllers/can_i_deploy"

module PactBroker
  module UI
    module Controllers
      describe CanIDeploy do

        let(:app) { CanIDeploy }

        describe "GET" do
          before do
            TestDataBuilder.new
              .create_pact_with_hierarchy("Foo", "1", "Bar")
              .create_consumer_version_tag("main")
          end

          subject { get("/Foo/latest-version/main/can-i-deploy/to/prod") }

          it "renders the matrix page" do
            expect(subject.body).to include "The Matrix"
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.89.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.88.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.87.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.86.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.85.1 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.85.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.84.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.83.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.82.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.81.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb
pact_broker-2.80.0 spec/lib/pact_broker/ui/controllers/can_i_deploy_spec.rb