RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

How to Get Production-like Error Responses in Your Rails Tests

In the Rails test environment, when your app responds with an error, it shows the detailed exception page. That’s ideal for unexpected errors, but for expected error responses that you want to write tests for, your app ought to respond as it would in production. Here’s a quick way to do it: https://www.wetestrails.com/blog/realistic-error-responses

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in