Rails asset pipeline tests pass production broken
问题 I had the following problem with the asset pipeline. I have an HTML email with an image inside. I have tests covering the case in which the email is sent successfully. All tests pass. When going to production, the feature requiring the email to be sent is broken, because the HTML layout is referencing a non existent image. This obviously applies to all precompiled assets. It seems to me that suddenly tests are no longer reliable. Is there any way to avoid this situation to happen again? 回答1: