Sha256: 32246db5df7b563517c490be740d6b6a3a95580074a3d7185010c750718e1d8a
Contents?: true
Size: 803 Bytes
Versions: 112
Compression:
Stored size: 803 Bytes
Contents
require 'spec_helper' require 'pact/doc/markdown/index_renderer' module Pact module Doc module Markdown describe IndexRenderer do let(:consumer_name) { "Some Consumer" } let(:docs) { {"Some Provider" => "Some Provider.md", "Some other provider" => "Some other provider.md"} } let(:subject) { IndexRenderer.new(consumer_name, docs) } let(:expected_content) { File.read('./spec/support/generated_index.md')} describe "#call" do it "renders the index" do expect(subject.call).to eq expected_content end end describe ".call" do it "renders the index" do expect(IndexRenderer.call(consumer_name, docs) ).to eq expected_content end end end end end end
Version data entries
112 entries across 112 versions & 2 rubygems