@@ -41,15 +41,15 @@ def test_markup_option
41
41
rd . markup = "tomdoc"
42
42
end
43
43
44
- assert_equal %w[ -o html --markup tomdoc ] , rdoc_task . option_list
44
+ assert_equal %w[ -o doc --markup tomdoc ] , rdoc_task . option_list
45
45
end
46
46
47
47
def test_tasks_creation
48
48
RDoc ::Task . new
49
49
assert Rake ::Task [ :rdoc ]
50
50
assert Rake ::Task [ :clobber_rdoc ]
51
51
assert Rake ::Task [ :rerdoc ]
52
- assert_equal [ "html /created.rid" ] , Rake ::Task [ :rdoc ] . prerequisites
52
+ assert_equal [ "doc /created.rid" ] , Rake ::Task [ :rdoc ] . prerequisites
53
53
end
54
54
55
55
def test_tasks_creation_with_custom_name_symbol
@@ -73,7 +73,7 @@ def test_tasks_option_parser
73
73
assert rdoc_task . rdoc_files . include? ( "README.md" )
74
74
assert rdoc_task . options . include? ( "--all" )
75
75
76
- args = %w[ --all -o html --main README.md ] << "--title" << "Test Tasks Option Parser" << "README.md"
76
+ args = %w[ --all -o doc --main README.md ] << "--title" << "Test Tasks Option Parser" << "README.md"
77
77
assert_equal args , rdoc_task . option_list + rdoc_task . rdoc_files
78
78
end
79
79
@@ -82,15 +82,15 @@ def test_generator_option
82
82
rd . generator = "ri"
83
83
end
84
84
85
- assert_equal %w[ -o html -f ri ] , rdoc_task . option_list
85
+ assert_equal %w[ -o doc -f ri ] , rdoc_task . option_list
86
86
end
87
87
88
88
def test_main_option
89
89
rdoc_task = RDoc ::Task . new do |rd |
90
90
rd . main = "README.md"
91
91
end
92
92
93
- assert_equal %w[ -o html --main README.md ] , rdoc_task . option_list
93
+ assert_equal %w[ -o doc --main README.md ] , rdoc_task . option_list
94
94
end
95
95
96
96
def test_output_dir_option
@@ -158,15 +158,15 @@ def test_template_option
158
158
rd . template = "foo"
159
159
end
160
160
161
- assert_equal %w[ -o html -T foo ] , rdoc_task . option_list
161
+ assert_equal %w[ -o doc -T foo ] , rdoc_task . option_list
162
162
end
163
163
164
164
def test_title_option
165
165
rdoc_task = RDoc ::Task . new do |rd |
166
166
rd . title = "Test Title Option"
167
167
end
168
168
169
- assert_equal %w[ -o html ] << "--title" << "Test Title Option" , rdoc_task . option_list
169
+ assert_equal %w[ -o doc ] << "--title" << "Test Title Option" , rdoc_task . option_list
170
170
end
171
171
172
172
end if defined? ( Rake ::Task )
0 commit comments