aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-06-14 10:40:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-06-14 10:40:23 -0700
commitcd4a0a333214b9045c5034ea2cf7bacb32ff78c6 (patch)
treee93c294c577fb50c3bd85eedd5c0b49d88d1e724 /actionpack
parentc04d02b4256b15725b07ff2617f2c678204f1e7b (diff)
downloadrails-cd4a0a333214b9045c5034ea2cf7bacb32ff78c6.tar.gz
rails-cd4a0a333214b9045c5034ea2cf7bacb32ff78c6.tar.bz2
rails-cd4a0a333214b9045c5034ea2cf7bacb32ff78c6.zip
we raise a subclass of LoadError, so rescue that
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/abstract/helper_test.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/actionpack/test/abstract/helper_test.rb b/actionpack/test/abstract/helper_test.rb
index 9a7445de7b..e79008fa9d 100644
--- a/actionpack/test/abstract/helper_test.rb
+++ b/actionpack/test/abstract/helper_test.rb
@@ -69,7 +69,12 @@ module AbstractController
end
def test_declare_missing_helper
- assert_raise(MissingSourceFile) { AbstractHelpers.helper :missing }
+ begin
+ AbstractHelpers.helper :missing
+ flunk "should have raised an exception"
+ rescue LoadError => e
+ assert_equal "helpers/missing_helper.rb", e.path
+ end
end
def test_helpers_with_module_through_block