April 3rd, 2007, 03:44 PM
undefined method `render' thrown in helper tet
I'm trying to write a very simple test for a very simple method in a helper_test.
Here's the method I'm testing in my_helper.rb:
And in my_helper_test.rb
render(:partial => '/subscription/toggle')
The link = subscribe_email_link section throws a "undefined method `render' " error
@subscription_model_class = true
link = subscribe_email_link
Is there a way I can add render functionality in this helper test?
Thanks for your time.
December 3rd, 2010, 02:12 AM
You are probably looking for render_to_string, right?