Forum: Ruby on Rails testing Helpers

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Gerret A. (Guest)
on 2006-01-13 09:40
(Received via mailing list)
[I'm reposting this. The subject wasnt complete and misleading in my
initial post ('testing')]

I'm looking for a good way to make all of Rails' inbuilt helpers
available to my custom Helper while I'm testing it.

The Helper I'm testing is EditorHelper. EditorHelper 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

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

But I'd much rather make use of
in ActionView::Base to load all the helpers in one swoop.

I couldnt figure out how to use that method (or even copy/past+modify
it) to  include all of Rails' Helpers within my EditorHelper. Who
knows how?
This topic is locked and can not be replied to.