Displaying 2 results from an estimated 2 matches for "editor_helper_test".
2006 Jan 12
0
testing
...itorHelper itself relies on
some of Rails'' inbuilt Helpers, such as JavaScriptHelper and
UrlHelper. These are automagically available when called on within an
ERB template, but not when called by my EditorHelper inside a unit
Test.
I can manually include each of the required Helpers in my
editor_helper_test file:
...
require ''action_view/helpers/url_helper''
module EditorHelper
include ActionView::Helpers::UrlHelper
end
...
But I''d much rather make use of
self.load_helpers(helper_dir)#:nodoc:
in ActionView::Base to load all the helpers in one swoop.
I couldnt figure o...
2006 Jan 13
0
testing Helpers
...itorHelper itself relies on
some of Rails'' inbuilt Helpers, such as JavaScriptHelper and
UrlHelper. These are automagically available when called on within an
ERB template, but not when called by my EditorHelper inside a unit
Test.
I can manually include each of the required Helpers in my
editor_helper_test file:
...
require ''action_view/helpers/url_helper''
module EditorHelper
include ActionView::Helpers::UrlHelper
end
...
But I''d much rather make use of
self.load_helpers(helper_dir)#:nodoc:
in ActionView::Base to load all the helpers in one swoop.
I couldnt figure out...