I have a view that passes two params hashes (:user and :school) to my
controller action. In the functional test for the controller action,
how do pass these two hashes?
I tried the following that did not work
get(:create, [:user => {:firstname => ‘xxx’, :lastname =>
‘yyyy’}, :school => {:id => 1}] )
It seems to pick only the first array element.
Anybody run into this issue and knows how to do this?
:user and :school are themselves hash keys, and the hash to which they
belong is implicit in your argument list, based on the Ruby rule that
if the last thing in an argument list is a literal hash, you can leave
off the curly braces.