Fix have_correct_syntax with erb

I made a terrible mistake by relying simply on ERB.new instead of Rails own implementation. This pull request fixes that, making it possible to test anything simpler than erb one-liners. I also extended the spec to reflect this potential error.