grosser / rspec-instafail

Show failing specs instantly
MIT License
283 stars 34 forks source link

How to get it working with Guard #13

Closed barmstrong closed 11 years ago

barmstrong commented 11 years ago

Just wanted to drop a note in here to let googlers know that settings in your Guardfile will override the settings in the .rspec file.

Got trolled hard by this, here is what the relevant line in my Guardfile looks like:

guard 'rspec', version: 2, cli: '--drb --colour --require rspec/instafail --format RSpec::Instafail', all_after_pass: false do
  ...
end

it works with documentation formatting also, but seems to have some duplication of output

guard 'rspec', version: 2, cli: '--drb --colour --format documentation --require rspec/instafail --format RSpec::Instafail', all_after_pass: false do
  ...
end

And it was safe to delete the .rspec file at that point (it was having no effect). Hope it helps!