Anton Khorev
bde2faac58
Remove assert_response when followed by assert_redirected_to
2024-03-03 10:56:50 +03:00
Harry Wood
fcbccb6a44
Report verification render not redirect
...
Fix an issue with the report verification, causing it to lose the text of a report if the user fails to fill in a category.
By using a `render` instead of a `redirect_to`, the rails standard verification behaviour works better. It means we also get a nice red "can't be blank" message highlighting the specific missing field.
2022-05-04 19:42:36 +01:00
Tom Hughes
8979c597e3
Refactor more controller tests
2020-04-26 22:56:18 +01:00
Andy Allan
4dd4831c0a
Just pass the user object, rather than the display_name, to the user_path helper
2018-09-10 10:54:29 +08:00
Tom Hughes
22385c179a
Improve controller tests for issues
2018-06-10 17:48:47 +01:00
Andy Allan
696bbd169b
Redirect to the reportable after creating a report.
2018-03-14 17:24:41 +08:00
Andy Allan
63992d83bd
Store the report category.
2017-12-13 16:02:55 +00:00
Andy Allan
9ce00608a4
Remove the test around missing report_type, since we're not currently requiring that.
2017-11-29 18:04:31 +00:00
Andy Allan
f0bcdae908
Put the expected value first in assert_equal
2017-11-29 18:02:26 +00:00
Andy Allan
1766c3216f
Move controller tests for new reports into seperate file, and adapt to new form structure.
2017-11-29 17:59:42 +00:00