Hello, 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: [code] def subscribe_email_link if @subscription_model_class render(:partial => '/subscription/toggle') end end [/code] And in my_helper_test.rb I'm trying: [code] def test_subscribe_email_link @subscription_model_class = true link = subscribe_email_link end [/code] The link = subscribe_email_link section throws a "undefined method `render' " error Is there a way I can add render functionality in this helper test? Thanks for your time. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---