Displaying 1 result from an estimated 1 matches for "use_part".
Did you mean:
use_pam
2009 Oct 14
6
Reinstantiate controller during functional testing
...ack to the first select box,
select a different item, and see something different happen.
I have tried to script this up in my functional test with something like this:
test "blah blah blah"
xhr :post,
:add_lot_to_assembly,
:id => lots(:lot_one).to_param,
:use_part => parts(:part_three).to_param
assert_response :success
xhr :post,
:add_lot_to_assembly,
:id => lots(:lot_one).to_param,
:use_part => parts(:part_two).to_param
assert_response :success
end
The problem is, there is an instance variable in my controller...