Sha256: 5dadd21d763afc7cb474f2c66dbfb2371163f70700ab08d4ba791b280b8c0d92
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require File.dirname(__FILE__) + '/integration_spec_helper' RSpec.describe 'RDoc integration' do include_context 'shared helpers for markup processor integration specs' let(:markup) { :rdoc } # Must be nil as this is how this provider is defined. # See: https://github.com/lsegal/yard/commit/6634ae25878cd4fcb79. let(:markup_provider) { nil } let(:document) do <<-RDOC == Example code listings Verbatim block of Ruby code: x = 1 Verbatim non-Ruby block: This has nothing to do with Ruby. RDOC end it 'renders level 2 header' do expect(rendered_document).to match(header_regexp(2, 'Example code listings')) end it 'renders indented block of code, and applies Ruby syntax highlight' do expect(rendered_document).to match(highlighted_ruby_regexp('x', '=', '1')) end it 'renders indented block of text which is not a piece of Ruby code, ' \ 'and does not apply syntax highlight' do expect(rendered_document).to match('This has nothing to do with Ruby.') end end
Version data entries
4 entries across 4 versions & 1 rubygems