I’ve fixed this issue, it was nothing to do with Discourse per se.
I had --require spec_helper in my .rspec file which is recommended in multiple places, even the rspec github wiki!
I removed that line and now the tests run. Wanted to reply here in case anyone else runs into this issue.