Hi,
as the rails error handling doesn't fit our needs while rendering JS requests, we manually take care of redirecting via js to an error page (otherwise, failing ajax requests will silently crash and browser won't show any response).
We decided to call ExceptionNotifier manually with "ExceptionNotifier.deliver_exception_notification(exception, self, request)"
But in RSpec-Tests we got some strange errors:
ActionView::TemplateError: Invalid argument - ./D:/project/vendor/plugins/exception_notification/lib/../views/exception_notifier/request.rhtml
In d:/project/vendor/plugins/exception_notification/views/exception_notifier/request.rhtml
It occurs in exception_notifier_helper.rb, Line 41.
For the test, it helps to add a "./" in front of the path:
path = "./#{File.dirname(FILE)}/../#{VIEW_PATH}/_#{partial}.rhtml"
Is there a better way, to solve this js error reporting issue or should we exclude ExceptionNotifier in Tests manually?