How to import Rails helpers in to the functional tests
问题 Hi I recently inherited a project in which the former dev was not familiar with rails, and decided to put a lot of important logic into the view helpers. class ApplicationController < ActionController::Base protect_from_forgery include SessionsHelper include BannersHelper include UsersHelper include EventsHelper end Specifically session management. This is okay and working with the app but I am having problems writing tests for this. A specific example. Some of the actions do a before_filter