I just noticed that this line in Rails Action view makes it so that CSRF tokens are disabled (forgery protection) in tests by default.
https://github.com/rails/rails/blob/master/actionview/lib/action_view/test_case.rb#L111
I presume from this code that this is intentional. Is there a recommended strategy for enable CSRF tokens in my test suite? Or is this a practice that is not recommended?
Thanks.
Jason