Sha256: 1434826a3bb25c5a38e4c2685760dc19d3ca863de00f33ae0660e5e13bcc68ca
Contents?: true
Size: 791 Bytes
Versions: 10
Compression:
Stored size: 791 Bytes
Contents
require 'spec_helper' require 'pact/doc/markdown/consumer_contract_renderer' module Pact module Doc module Markdown describe ConsumerContractRenderer do subject { ConsumerContractRenderer.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(ConsumerContractRenderer.call consumer_contract).to eq(expected_output) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems