Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rdoc_segfault_patch_spec.rb « initializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9630295052735f5f69babd1580210764c3ddd7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

RSpec.describe 'RDoc segfault patch fix' do
  describe 'RDoc::Markup::ToHtml' do
    describe '#parseable?' do
      it 'returns false' do
        to_html = RDoc::Markup::ToHtml.new( nil)

        expect(to_html.parseable?('"def foo; end"')).to eq(false)
      end
    end
  end

  describe 'RDoc::Markup::Verbatim' do
    describe 'ruby?' do
      it 'returns false' do
        verbatim = RDoc::Markup::Verbatim.new('def foo; end')
        verbatim.format = :ruby

        expect(verbatim.ruby?).to eq(false)
      end
    end
  end
end