Rails Recipe 44 -- Write Tests for Your Helpers

I'm having trouble getting this to work.

The recipe is simple:

def setup @controll = SomeController.new request = ActionController::TestRequest.new @controller.instance_eval { @params = {}, @request = request } @controller.send(:initialize_current_url) end

This looks out of date - looking at the source it would seem like the
name of the magic instance variables are now @_params and @_request
(better yet use the accessors)

Fred