mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue