Suppress Ruby warnings when running specs

前端 未结 10 2249
野趣味
野趣味 2020-11-27 14:46

I\'m looking for a way to suppress Ruby warnings when I run my specs.

spec spec/models/account_spec.rb

I receive warnings such as:

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 15:24

    The syntax for RUBYOPT is

    RUBYOPT="-W0" rspec
    

    Tested in ruby 2.1.x and 2.14.x

提交回复
热议问题