зеркало из https://github.com/github/ruby.git
[ruby/rdoc] Get rid of `Kernel#open`
https://github.com/ruby/rdoc/commit/dc56f6d0bd
This commit is contained in:
Родитель
3c5a3b73f1
Коммит
cc393b4f80
|
@ -165,12 +165,7 @@ class TestRDocRDoc < RDoc::TestCase
|
|||
b = Dir.glob(b).first
|
||||
c = Dir.glob(c).first
|
||||
|
||||
dot_doc = File.expand_path('.document')
|
||||
FileUtils.touch dot_doc
|
||||
open(dot_doc, 'w') do |f|
|
||||
f.puts 'a.rb'
|
||||
f.puts 'b.rb'
|
||||
end
|
||||
File.write('.document', "a.rb\n""b.rb\n")
|
||||
expected_files << a
|
||||
expected_files << b
|
||||
|
||||
|
@ -196,12 +191,7 @@ class TestRDocRDoc < RDoc::TestCase
|
|||
b = Dir.glob(b).first
|
||||
c = Dir.glob(c).first
|
||||
|
||||
dot_doc = File.expand_path('.document')
|
||||
FileUtils.touch dot_doc
|
||||
open(dot_doc, 'w') do |f|
|
||||
f.puts 'a.rb'
|
||||
f.puts 'b.rb'
|
||||
end
|
||||
File.write('.document', "a.rb\n""b.rb\n")
|
||||
expected_files << a
|
||||
|
||||
@rdoc.options.exclude = Regexp.new(['b.rb'].join('|'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче