In Rails 3.2.9 I have custom error pages defines like this:
# application.rb config.exceptions_app = self.routes # routes.rb match \'/404\' => \'errors#n
If you want to do it and don't want to change config/environments/test.rb, you can follow the solution from this post.
config/environments/test.rb