aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-06-26 13:20:26 -0700
committerYves Senn <yves.senn@gmail.com>2013-06-26 13:20:26 -0700
commit3f50dd21c13359735bb40c5693010c6dd5e4b132 (patch)
treefede5b2683329ed7301ad6eb26efd91be61c101f /activesupport/test
parent577fad19089a370b3ab8fabb6fb744d2d7c0ff1c (diff)
parent8139d727c548863ea8f986d6e6a2249fe5bd83f2 (diff)
downloadrails-3f50dd21c13359735bb40c5693010c6dd5e4b132.tar.gz
rails-3f50dd21c13359735bb40c5693010c6dd5e4b132.tar.bz2
rails-3f50dd21c13359735bb40c5693010c6dd5e4b132.zip
Merge pull request #10828 from southpolesteve/delegation_error_class
Create DelegationError class
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/module_test.rb2
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