summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-03-24 14:33:53 +0900
committergit <svn-admin@ruby-lang.org>2021-03-24 14:39:50 +0900
commit0259ee600857729d289959ddf5973c25159209b2 (patch)
tree0a2e14dc5526a1d81895e1eb56f0b089f44f537d /test
parentc9d0053e67e170dce1a05616525481e2ace0b08e (diff)
[ruby/irb] Change ripper_lex_without_warning to a class method
https://github.com/ruby/irb/commit/d9f8abc17e
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_ruby_lex.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb
index 1981939848..556afbd776 100644
--- a/test/irb/test_ruby_lex.rb
+++ b/test/irb/test_ruby_lex.rb
@@ -558,8 +558,7 @@ module TestIRB
skip 'This test needs Ripper::Lexer#scan to take broken tokens'
end
- ruby_lex = RubyLex.new
- tokens = ruby_lex.ripper_lex_without_warning('%wwww')
+ tokens = RubyLex.ripper_lex_without_warning('%wwww')
pos_to_index = {}
tokens.each_with_index { |t, i|
assert_nil(pos_to_index[t[0]], "There is already another token in the position of #{t.inspect}.")
@@ -572,8 +571,7 @@ module TestIRB
skip 'This test needs Ripper::Lexer#scan to take broken tokens'
end
- ruby_lex = RubyLex.new
- tokens = ruby_lex.ripper_lex_without_warning(<<~EOC.chomp)
+ tokens = RubyLex.ripper_lex_without_warning(<<~EOC.chomp)
def foo
%wwww
end