summaryrefslogtreecommitdiff
path: root/test/irb/helper.rb
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-02-15 17:09:11 +0000
committerHiroshi SHIBATA <[email protected]>2024-02-19 10:48:38 +0900
commit9ec9910081b5d91becf9d9d8df7ea65c2ccc3a71 (patch)
tree83910d19c5d0543927d20b8756b1d34908cec7a6 /test/irb/helper.rb
parent11a6bb8195252910ce7ccfb17f1a39cc510bde22 (diff)
[ruby/irb] Update error message assertions for Ruby 3.4
(https://github.com/ruby/irb/pull/874) https://github.com/ruby/ruby/pull/9605 changes both quotes and format for exception messages. So we need to update the assertions in the tests. https://github.com/ruby/irb/commit/9359d4b51d
Diffstat (limited to 'test/irb/helper.rb')
-rw-r--r--test/irb/helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/helper.rb b/test/irb/helper.rb
index 38bdbb4c31..8d32e45adf 100644
--- a/test/irb/helper.rb
+++ b/test/irb/helper.rb
@@ -17,6 +17,7 @@ module IRB
end
module TestIRB
+ RUBY_3_4 = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0.dev")
class TestCase < Test::Unit::TestCase
class TestInputMethod < ::IRB::InputMethod
attr_reader :list, :line_no