Add frozen string literal comments
Created by: tegandbiscuits
I saw #2264 and thought adding the frozen string literal comments would be a good way to ensure RSpec works with frozen string literal enabled.
This also makes rubocop enforce the comment is present. I wasn't sure if it should go in .rubocop_rspec_base.yml
or just .rubocop.yml
, but can move it.
I also added a test to be sure that other peoples specs don't have to have frozen string literal enabled to use RSpec.