Save_and_open_page does not raise scss markup

Just updated the RoR 3.0 project to version 3.2. I moved CSS assets to the asset pipeline and now used SASS. My Rspec request specifications are still passed, but when I enter the save_and_open_page statement, the resulting page does not have CSS styles. HTML rendering is accurate, explaining the passing tests.

Any configuration ideas?

+4
source share
1 answer

You can use capybara-screenshot gem for debugging.

You will need a screenshot of the page you want to debug.

Set the gem and use screen_shot_and_open_image instead of save_and_open_page

+2
source

Source: https://habr.com/ru/post/1397364/