Skip to content

Commit 29396cb

Browse files
committed
Summary: Fixed the version check for FrozenError exception.
1 parent 6b6b8ac commit 29396cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_tree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ def test_freeze_tree_bang
945945
# For Ruby > 1.9, RuntimeError is raised
946946
# For Ruby ~ 1.8, TypeError is raised
947947
require 'rubygems' # Only needed for ruby pre-1.9.0 but it's safe for later versions (evaluates to false).
948-
if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new('2.4.0')
948+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5')
949949
assert_raise(RuntimeError, TypeError) {@root.content = '123'}
950950
assert_raise(RuntimeError, TypeError) {@root[0].content = '123'}
951951
else

0 commit comments

Comments
 (0)