Sha256: 35cad74fa440c7608d070a60ef76cb50d3f8bab94dad16c8ebf3d9f9932e23d0

Contents?: true

Size: 413 Bytes

Versions: 8

Compression:

Stored size: 413 Bytes

Contents

require 'test/xref_test_case'

class TestRDocNormalModule < XrefTestCase

  def setup
    super

    @mod = RDoc::NormalModule.new 'Mod'
  end

  def test_comment_equals
    @mod.comment = '# comment 1'

    assert_equal '# comment 1', @mod.comment

    @mod.comment = '# comment 2'

    assert_equal "# comment 1\n# ---\n# comment 2", @mod.comment
  end

  def test_module_eh
    assert @mod.module?
  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
middleman-0.10.17 vendor/gems/gems/rdoc-2.4.3/test/test_rdoc_normal_module.rb
middleman-0.10.16 vendor/gems/gems/rdoc-2.4.3/test/test_rdoc_normal_module.rb
middleman-0.10.15 vendor/gems/gems/rdoc-2.4.3/test/test_rdoc_normal_module.rb
middleman-0.10.14 vendor/gems/gems/rdoc-2.4.3/test/test_rdoc_normal_module.rb
rdoc-2.4.3 test/test_rdoc_normal_module.rb
rdoc-2.4.2 test/test_rdoc_normal_module.rb
rdoc-2.4.0 test/test_rdoc_normal_module.rb
rdoc-2.4.1 test/test_rdoc_normal_module.rb