We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FrozenError
1 parent 6b6b8ac commit 29396cbCopy full SHA for 29396cb
1 file changed
test/test_tree.rb
@@ -945,7 +945,7 @@ def test_freeze_tree_bang
945
# For Ruby > 1.9, RuntimeError is raised
946
# For Ruby ~ 1.8, TypeError is raised
947
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')
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5')
949
assert_raise(RuntimeError, TypeError) {@root.content = '123'}
950
assert_raise(RuntimeError, TypeError) {@root[0].content = '123'}
951
else
0 commit comments