The following error is generated: "undefined local variable or method" params ""
assert_equal params[:recipient_id], users(:one).id
How do you check the params hash?
Also, how do you test assert_redirect when parameters are present? Parameters are added to the URL, so testing for model_path or similar crashes.
Working with the built-in test class in Rails 3.
B seven
source share