I’m using the functional test for a method like this:
post :create, :phase => ‘copynew’, :id => 1
assert_tag :content => ‘New Item’
This posts a request to the create method in the controller. Is there
any way to look at the variables and objects that were created in the
controller by this post? It looks like you are only able to examine the
resulting html output.
Is that more of a unit test thing rather than a functional test thing?
And finally, if it is a unit test thing, how do I pass a set of params
to a controller method call from a unit test?