File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -109,17 +109,18 @@ def load_options_no_file
109
109
end
110
110
111
111
def test_normalized_file_list
112
+ test_path = File . expand_path ( __FILE__ )
112
113
files = temp_dir do |dir |
113
114
flag_file = @rdoc . output_flag_file dir
114
115
115
116
FileUtils . touch flag_file
116
117
117
- @rdoc . normalized_file_list [ __FILE__ , flag_file ]
118
+ @rdoc . normalized_file_list [ test_path , flag_file ]
118
119
end
119
120
120
121
files = files . map { |file | File . expand_path file }
121
122
122
- assert_equal [ File . expand_path ( __FILE__ ) ] , files
123
+ assert_equal [ test_path ] , files
123
124
end
124
125
125
126
def test_normalized_file_list_not_modified
@@ -189,9 +190,10 @@ def test_parse_file_binary
189
190
def test_parse_file_include_root
190
191
@rdoc . store = RDoc ::Store . new
191
192
193
+ test_path = File . expand_path ( '..' , __FILE__ )
192
194
top_level = nil
193
195
temp_dir do |dir |
194
- @rdoc . options . parse %W[ --root #{ File . dirname ( __FILE__ ) } ]
196
+ @rdoc . options . parse %W[ --root #{ test_path } ]
195
197
196
198
open 'include.txt' , 'w' do |io |
197
199
io . puts ':include: test.txt'
You can’t perform that action at this time.
0 commit comments