- post :create, { :report => { :details => details},
- :report_type => "[OFFENSIVE]",
- :issue => { reportable_id: 1, reportable_type: "User", reported_user_id: 2} }
- end
- assert_equal Issue.count,1
+ post :create,
+ :params => {
+ :report => { :details => details },
+ :report_type => "[OFFENSIVE]",
+ :issue => { :reportable_id => target_user.id, :reportable_type => "User", :reported_user_id => target_user.id }
+ }
+ end
+ assert_equal Issue.count, 1