Sha256: bd6f90ef6065bd190858b412354f397bb12292c2d5f88ba67827d5bd1812bf00
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
module Polytrix describe DocumentationGenerator do let(:search_path) { 'spec/fixtures/src-doc' } let(:bound_data) { double } subject(:generator) { DocumentationGenerator.new(search_path) } context 'when no documentation exists' do it 'does nothing if there is no documentation for the scenario' do expect(generator.process 'no_doc', bound_data).to be_nil end end context 'when documentation does exist' do let(:generated_doc) { generator.process 'Quine', bound_data } it 'returns the generated document as a string' do expect(generated_doc).to be_a(String) end context 'ERB processing' do it 'processes scenario' do expect(generated_doc).to include 'Examples for Quine scenario:' end it 'processes Polytrix.implementors' do fail 'This test requires implementors' unless Polytrix.implementors Polytrix.implementors.each do |implementor| expect(generated_doc).to include "## #{implementor}" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | spec/polytrix/documentation_generator_spec.rb |