I'm trying to write a test for a helper method that accepts a form helper object, is there a way to create a form object within the test?
/app/views/blahs/edit.html.erb
<% form_for :blahs do |blah| %>
<%= my_helper_method(blah) %>
<% end %>
/app/helpers/blahs_helper.rb
def my_helper_method(blah) # # blah is ActionView::Helpers::FormBuilder # do something with the form object here # end
So in my test case how do I create the form object? I'm still on Rails 2.3.9.
Thanks in advance