# confing/environments/test.rb
config.consider_all_requests_local = false
# spec/acceptance/acceptance_helper.rb
ActionDispatch::Request.class_eval do
def local? # we need to consider the requests to be non-local to
test error pages
false
end
end
This works, but I'm wondering if there is a better way. Namely
avoiding monkeypatching ActionDispatch::Request.