Sha256: d2eee6bbccca6c667bfb0114311f3192dad4bd5d3273266ac7a6e7e5172ca9ae

Contents?: true

Size: 774 Bytes

Versions: 4

Compression:

Stored size: 774 Bytes

Contents

require 'spec_helper'
require 'pact/doc/markdown/interactions_renderer'

module Pact
  module Doc
    module Markdown
      describe InteractionsRenderer do

        subject { InteractionsRenderer.new(consumer_contract) }
        let(:consumer_contract) { Pact::ConsumerContract.from_uri './spec/support/markdown_pact.json' }

        let(:expected_output) { File.read("./spec/support/generated_markdown.md") }

        describe "#call" do
          it "renders an interaction" do
            expect(subject.call).to eq(expected_output)
          end
        end

        describe ".call" do
          it "renders an interaction" do
            expect(InteractionsRenderer.call consumer_contract).to eq(expected_output)
          end
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact-1.1.0 spec/lib/pact/doc/markdown/interactions_renderer_spec.rb
pact-1.1.0.rc5 spec/lib/pact/doc/markdown/interactions_renderer_spec.rb
pact-1.1.0.rc4 spec/lib/pact/doc/markdown/interactions_renderer_spec.rb
pact-1.1.0.rc3 spec/lib/pact/doc/markdown/interactions_renderer_spec.rb