request.env works better in the controller rspec tests