Fix invalid statement template compile error #42244
That's where I found it from, thanks @kamipo, was trying to find a way to write a test, before I moved it to ready for review.
Currently there are no tests around the invalid_statement view and a few others. In this case, that could be because where the class originates from i.e.
For example I tried to test but could not throw a StatementInvalid error, action pack does not have ActiveRecord dependency, test example:
If you do have ideas on how to test, let me know
I added a regression to catch any issues with the .html.erb template, so for example if we remove an
I could not see an existing test for this, but I'm going to take a closer look. I'm also going to add a test to catch regressions in the
(moving back to draft and so I can work on adding that other test)