Sha256: c919f301d37df55112a1a6d7ede7dd76f743e0a476f06b4984cf1eacf82fa444

Contents?: true

Size: 443 Bytes

Versions: 20

Compression:

Stored size: 443 Bytes

Contents

require 'rdoc/test_case'

class TestRDocMarkupVerbatim < RDoc::TestCase

  def test_equals2
    v1 = verb('1 + 1')
    v2 = verb('1 + 1')
    v3 = verb('1 + 2')
    v4 = verb('1 + 1')
    v4.format = :ruby

    assert_equal v1, v2

    refute_equal v1, v3
    refute_equal v1, v4
  end

  def test_ruby_eh
    verbatim = RDoc::Markup::Verbatim.new

    refute verbatim.ruby?

    verbatim.format = :ruby

    assert verbatim.ruby?
  end

end

Version data entries

20 entries across 16 versions & 3 rubygems

Version Path
rdoc-4.3.0 test/test_rdoc_markup_verbatim.rb
rdoc-4.2.2 test/test_rdoc_markup_verbatim.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/rdoc-4.1.1/test/test_rdoc_markup_verbatim.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/rdoc-4.1.1/test/test_rdoc_markup_verbatim.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/rdoc-4.1.1/test/test_rdoc_markup_verbatim.rb
rdoc-4.2.1 test/test_rdoc_markup_verbatim.rb
rdoc-4.2.0 test/test_rdoc_markup_verbatim.rb
rdoc-4.1.2 test/test_rdoc_markup_verbatim.rb
rdoc-4.1.1 test/test_rdoc_markup_verbatim.rb
rdoc-4.1.0 test/test_rdoc_markup_verbatim.rb
rdoc-4.1.0.preview.3 test/test_rdoc_markup_verbatim.rb
candlepin-api-0.4.0 bundle/ruby/gems/rdoc-4.0.1/test/test_rdoc_markup_verbatim.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/rdoc-4.0.1/test/test_rdoc_markup_verbatim.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/rdoc-4.0.1/test/test_rdoc_markup_verbatim.rb
rdoc-4.0.1 test/test_rdoc_markup_verbatim.rb
rdoc-4.0.0 test/test_rdoc_markup_verbatim.rb
rdoc-4.0.0.rc.2.1 test/test_rdoc_markup_verbatim.rb
rdoc-4.0.0.rc.2 test/test_rdoc_markup_verbatim.rb
rdoc-4.0.0.preview2.1 test/test_rdoc_markup_verbatim.rb
rdoc-4.0.0.preview2 test/test_rdoc_markup_verbatim.rb