开发者

Problem with guard-test compiling asset cache files

开发者 https://www.devze.com 2023-03-25 18:24 出处:网络
Running tests using guard-test compiles asset cache files. This does not occur when I run tests normally using rake. My test.rb environment specifies config.action_controller.perform_cachin开发者_运维

Running tests using guard-test compiles asset cache files. This does not occur when I run tests normally using rake. My test.rb environment specifies config.action_controller.perform_cachin开发者_运维百科g = false. I am overriding host and using sub-domains if that makes any difference.

Functional: @request.host = "sub.domain.devnet"

Integration: host! "sub.domain.devnet" Capybara.default_host = "sub.domain.devnet"

All tests are green.


do you have ENV["RAILS_ENV"] ||= 'test' in your test/test_helper.rb file?

Maybe the normal rake task automatically set it?

0

精彩评论

暂无评论...
验证码 换一张
取 消