Permalink
Browse files

we raise a subclass of LoadError, so rescue that

  • Loading branch information...
1 parent c04d02b commit cd4a0a333214b9045c5034ea2cf7bacb32ff78c6 @tenderlove tenderlove committed Jun 14, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 actionpack/test/abstract/helper_test.rb
View
7 actionpack/test/abstract/helper_test.rb
@@ -69,7 +69,12 @@ def test_helpers_with_symbol
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

0 comments on commit cd4a0a3

Please sign in to comment.