Guard with RSpec on Rails 4 giving a lot of warnings

后端 未结 2 2013
盖世英雄少女心
盖世英雄少女心 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:10

    The rspec generator rails generate rspec:install now puts the --warnings option in the .rspec file by default. Remove that line, and the warnings will go away.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题