summaryrefslogtreecommitdiff
path: root/jni/ruby/test/rdoc/test_rdoc_single_class.rb
blob: e368b3d6fdd4ca3adf554f8cc6f790d4b4fd0067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'rdoc/test_case'

class TestRDocSingleClass < RDoc::TestCase

  def setup
    super

    @c = RDoc::SingleClass.new 'C'
  end

  def test_aref_prefix
    assert_equal 'sclass', @c.aref_prefix
  end

  def test_definition
    assert_equal 'class << C', @c.definition
  end

end