From 20d29b379767713c64397a28105d1b74f0f36f5f Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 29 Dec 2007 19:43:07 +0000 Subject: Ruby 1.9 compat: introduce ActiveSupport::FrozenObjectError normalize TypeError vs RuntimeError handling. Closes #10645 [Frederick Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/core_ext/exception_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/test/core_ext/exception_test.rb') diff --git a/activesupport/test/core_ext/exception_test.rb b/activesupport/test/core_ext/exception_test.rb index b1ea564a0c..6a60c91380 100644 --- a/activesupport/test/core_ext/exception_test.rb +++ b/activesupport/test/core_ext/exception_test.rb @@ -61,4 +61,8 @@ class ExceptionExtTests < Test::Unit::TestCase assert_kind_of Exception, e assert_equal [], e.application_backtrace end + + def test_frozen_error + assert_raise(ActiveSupport::FrozenObjectError) { "foo".freeze.gsub!(/oo/,'aa') } + end end -- cgit v1.2.3