summaryrefslogtreecommitdiff
path: root/test/irb/test_color_printer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/irb/test_color_printer.rb')
-rw-r--r--test/irb/test_color_printer.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/irb/test_color_printer.rb b/test/irb/test_color_printer.rb
index 41a7345bd3..a717940d81 100644
--- a/test/irb/test_color_printer.rb
+++ b/test/irb/test_color_printer.rb
@@ -38,9 +38,6 @@ module TestIRB
IRBTestColorPrinter = Struct.new(:a)
def test_color_printer
- unless ripper_lexer_scan_supported?
- pend 'Ripper::Lexer#scan is supported in Ruby 2.7+'
- end
{
1 => "#{BLUE}#{BOLD}1#{CLEAR}\n",
"a\nb" => %[#{RED}#{BOLD}"#{CLEAR}#{RED}a\\nb#{CLEAR}#{RED}#{BOLD}"#{CLEAR}\n],
@@ -55,10 +52,6 @@ module TestIRB
private
- def ripper_lexer_scan_supported?
- Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7.0')
- end
-
def with_term
stdout = $stdout
io = StringIO.new