2017-11-27 13:45:24 +03:00
|
|
|
# frozen_string_literal: true
|
2014-12-07 04:22:37 +03:00
|
|
|
require 'rdoc/test_case'
|
2011-02-02 08:52:11 +03:00
|
|
|
|
2014-12-07 04:22:37 +03:00
|
|
|
class TestRDocSingleClass < RDoc::TestCase
|
2011-02-02 08:52:11 +03:00
|
|
|
|
2014-12-07 04:22:37 +03:00
|
|
|
def setup
|
|
|
|
super
|
|
|
|
|
|
|
|
@c = RDoc::SingleClass.new 'C'
|
|
|
|
end
|
2011-02-02 08:52:11 +03:00
|
|
|
|
2014-12-07 04:22:37 +03:00
|
|
|
def test_aref_prefix
|
|
|
|
assert_equal 'sclass', @c.aref_prefix
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_definition
|
|
|
|
assert_equal 'class << C', @c.definition
|
2011-02-02 08:52:11 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|