Sha256: 1918d534bf39f10c068c12f8f4fbfdbaa8bcc381834c551588839d551f7ad64f

Contents?: true

Size: 746 Bytes

Versions: 12

Compression:

Stored size: 746 Bytes

Contents

require "pact_broker/api/renderers/integrations_dot_renderer"

module PactBroker
  module Api
    module Renderers
      describe IntegrationsDotRenderer do

        # TODO work out how to handle apostrophes etc

        let(:integrations) do
          [
            double("integration", consumer_name: "Foo", provider_name: "Bar"),
            double("integration", consumer_name: "Wiffle", provider_name: "Foo Thing")
          ]
        end

        let(:expected_content) { load_fixture("expected.gv") }

        describe "#call" do
          subject { IntegrationsDotRenderer.call(integrations) }

          it "renders a dot file" do
            expect(subject).to eq expected_content
          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/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.89.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.88.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.87.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.86.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.85.1 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.85.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.84.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.83.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.82.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.81.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.80.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb