Guard::RSpec で cli オプションが非推奨
Posted on Monday, June 8th, 2015 14:26:00
Spork やら Guard やらで RSpec によるテスト環境を整備していたのですが、Guardfile をチュートリアル通りに下記のように記述していると
1 2 3 4 5 |
guard 'rspec', after_all_pass: false, cli: '--drb' do ・ ・ ・ end |
下記のような Warning が発生します。
1 |
Guard::RSpec DEPRECATION WARNING: The :cli option is deprecated. Please customize the new :cmd option to fit your need. |
:cli オプションが非推奨になったので、:cmd オプションであなたのお好みにカスタマイズしてね♪ってことなので、Guardfile を下記のように修正すればOKです。
1 2 3 4 5 |
guard 'rspec', after_all_pass: false, cmd: 'rspec --drb' do ・ ・ ・ end |
参考:ruby on rails – Guard Rspec :cli option is deprecated, change to :cmd option – Stack Overflow