Sha256: 880dde31ad3a52d857ef5a84e46313e8dea8d269f6d99a3ffcf514dc6daf0a3b

Contents?: true

Size: 746 Bytes

Versions: 76

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

76 entries across 76 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.79.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.78.1 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.78.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.77.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.76.2 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.76.1 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.76.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.75.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.74.1 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.74.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.73.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.72.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.71.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.70.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.69.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.68.1 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.68.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.67.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb
pact_broker-2.66.0 spec/lib/pact_broker/api/renderers/integrations_dot_renderer_spec.rb