fix test_erb.rb [GH-1763]
* test/erb/test_erb.rb (test_run): require stringio. suppress an unused variable warning. From: MSP-Greg <MSP-Greg@users.noreply.github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb3e32480d
commit
bca966617e
@ -2,6 +2,7 @@
|
||||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
require 'erb'
|
||||
require 'stringio'
|
||||
|
||||
class TestERB < Test::Unit::TestCase
|
||||
class MyError < RuntimeError ; end
|
||||
@ -235,6 +236,7 @@ EOS
|
||||
$stdout = orig
|
||||
out.rewind
|
||||
assert_equal('9', out.read)
|
||||
return unless num # to remove warning
|
||||
end
|
||||
|
||||
class Foo; end
|
||||
|
Loading…
x
Reference in New Issue
Block a user