The cmd
option is documented in the guard-rspec
README. Prefix whatever options you had in your cli:
value with your preferred method of calling rspec
.
For example, I use Zeus, so I had zeus: true
and bundler: false
options in addition to my cli:
option (all three of which are now deprecated):
guard 'rspec', cli: '--color --format nested --fail-fast', zeus: true, bundler: false, all_after_pass: true do
...
end
If I'm calling Rspec manually outside of guard, I'd use the command line:
zeus rspec [spec/]
So in my Guardfile, I remove the deprecated options and now use:
guard 'rspec', cmd: 'zeus rspec --color --format nested --fail-fast', all_after_pass: true do
...
end