Fixes failures when RACK_ENV is set

The `with_environment` spec helper only took into account `RAILS_ENV`, this
should fix it by setting/resetting `RACK_ENV` at the same time