diff options
author | Steve Faulkner <southpolesteve@gmail.com> | 2013-06-26 12:02:00 -0500 |
---|---|---|
committer | Steve Faulkner <southpolesteve@gmail.com> | 2013-06-26 15:12:54 -0500 |
commit | 8139d727c548863ea8f986d6e6a2249fe5bd83f2 (patch) | |
tree | f276df82a39c8b0ba8c2ba318c7e26b55034c0d2 /activesupport/test/core_ext | |
parent | 438e2ad3613f7266cfec77247ecb9b4e7c629b94 (diff) | |
download | rails-8139d727c548863ea8f986d6e6a2249fe5bd83f2.tar.gz rails-8139d727c548863ea8f986d6e6a2249fe5bd83f2.tar.bz2 rails-8139d727c548863ea8f986d6e6a2249fe5bd83f2.zip |
Add DelegationError class. Rasied by delegation to a nil object
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/module_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index 8872611fb1..ecef7754aa 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -207,7 +207,7 @@ class ModuleTest < ActiveSupport::TestCase def test_delegation_without_allow_nil_and_nil_value david = Someone.new("David") - assert_raise(RuntimeError) { david.street } + assert_raise(DelegationError) { david.street } end def test_delegation_to_method_that_exists_on_nil |