Displaying 1 result from an estimated 1 matches for "discussionscontrol".
2006 Jan 10
4
Problem creating MockController
Hi there,
I''m trying to create a mock controller to test the use of UrlHelper in
ActionMailer. I''m trying this:
require
''d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller''
# Re-raise errors caught by the controller.
#class DiscussionsController; def rescue_action(e) raise e end; end
class MockController < ActionController::Base
def initialize
@url = UrlRewriter.new(ActionController::TestRequest.new, nil)
super
end
end
because if I just do require ''action_controller'' I get a no such file error.
Problem with this...