Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8073927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:29:38+00:00 2026-06-05T14:29:38+00:00

I had the following problem with the asset pipeline. I have an HTML email

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:29:40+00:00Added an answer on June 5, 2026 at 2:29 pm

    I found the perfect solution form my own case. If you set

     config.assets.compile = false 
     config.assets.digest = true
    

    in test environment, your tests will rely on precompiled assets.

    Since it is annoying to precompile assets every time during quick development and testing phases, in my case it’s enough to have this configuration on CI only.

    You can setup an initializer called ci_config.rb with the following:

    if ENV['CI'] 
      class YourApp::Application
        config.assets.compile = false
        config.assets.digest = true 
      end
    end
    

    And configure you CI to run rake assets:precompile on start and rake assets:clean on end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had the following problem which both Google and the Python documentation cannot
I have had the following problem for a while and I am really not
Hi i am new to Spring and I have a following problem: I had
I had the following idea: Say we have a webapp written using django which
I have always had the following problem. Sometimes, myEclipse is blocked. So I'm obliged
I had the following problem today, and I was wondering if there is a
While developing an application, I had the following problem. I wanted to return an
I had no problem at all running the following code on a local server,
Had this working; at one stage. The problem is the following text is now
I have the following problem: I have to list several items each with several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.