How do I change www.example.com in rspec tests?

It looks like request.host is set to www.example.com, how do I change
that?

I want to change it for all tests, and it seems that request is only
available within the tests themselves (tried to do it in
RSpec.configure but that didn’t work.