Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test-case to verify `error.path` when a helper was not found.

This verifies the code added with:
99c9d18
  • Loading branch information...
commit 3af7b16c114802acdf0c0e7a34837a7a454fd23f 1 parent 5bee14f
@senny senny authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/abstract/helper_test.rb
View
5 actionpack/test/abstract/helper_test.rb
@@ -116,6 +116,11 @@ def test_controller_raise_error_about_missing_helper
e = assert_raise(AbstractController::Helpers::MissingHelperError) { AbstractInvalidHelpers.helper(:missing) }
assert_equal "Missing helper file helpers/missing_helper.rb", e.message
end
+
+ def test_missing_helper_error_has_the_right_path
+ e = assert_raise(AbstractController::Helpers::MissingHelperError) { AbstractInvalidHelpers.helper(:missing) }
+ assert_equal "helpers/missing_helper.rb", e.path
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.