summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_doctor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_doctor.rb')
-rw-r--r--test/rubygems/test_gem_doctor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_doctor.rb b/test/rubygems/test_gem_doctor.rb
index 39b8a11692..8db65d70ce 100644
--- a/test/rubygems/test_gem_doctor.rb
+++ b/test/rubygems/test_gem_doctor.rb
@@ -24,7 +24,7 @@ class TestGemDoctor < Gem::TestCase
FileUtils.rm b.spec_file
- open c.spec_file, 'w' do |io|
+ File.open c.spec_file, 'w' do |io|
io.write 'this will raise an exception when evaluated.'
end
@@ -77,7 +77,7 @@ Removed directory gems/c-2
FileUtils.rm b.spec_file
- open c.spec_file, 'w' do |io|
+ File.open c.spec_file, 'w' do |io|
io.write 'this will raise an exception when evaluated.'
end