Guard with RSpec on Rails 4 giving a lot of warnings

后端 未结 2 2025
盖世英雄少女心
盖世英雄少女心 2020-12-05 01:28

I\'m wondering how I can turn off all these warnings when running a simple test:

[1] guard(main)> 
16:59:46 - INFO - Run all
16:59:46 - INFO - Running all         


        
2条回答
  •  鱼传尺愫
    2020-12-05 02:18

    You can set the warnings to false in the your test environment to force Rspec to disable the warnings messages.

    # spec/spec_helper.rb

    config.warnings = false

提交回复
热议问题