summaryrefslogtreecommitdiff
path: root/test/ruby/test_range.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_range.rb')
-rw-r--r--test/ruby/test_range.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index 9c8bbaf..ba9b81e 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -163,8 +163,8 @@ class TestRange < Test::Unit::TestCase
def test_initialize_twice
r = eval("1..2")
- assert_raise(NameError) { r.instance_eval { initialize 3, 4 } }
- assert_raise(NameError) { r.instance_eval { initialize_copy 3..4 } }
+ assert_raise(FrozenError) { r.instance_eval { initialize 3, 4 } }
+ assert_raise(FrozenError) { r.instance_eval { initialize_copy 3..4 } }
end
def test_uninitialized_range