Question

I've just updated my rspec and guard installations because guard ran 3 times on every change after I started it with bundle exec guard. Well, now it runs 5 times whenever I change something in my code.

This is the terminal output message I get when running bundle exec guard

10:45:30 - INFO - Guard is using TerminalTitle to send notifications.
10:45:30 - INFO - Guard::RSpec is running
10:45:30 - INFO - Guard::RSpec is running
10:45:30 - INFO - Guard::RSpec is running
10:45:30 - INFO - Guard::RSpec is running
10:45:30 - INFO - Guard::RSpec is running
10:45:30 - INFO - Guard is now watching at '/Users/me/myProject'
10:45:38 - INFO - Running: spec/features/admin_area_spec.rb

I think there maybe is some place where the listener or something else gets started five times but I couldn't find it.

Update I'm using guard-rspec-4.2.8, rspec-2.14.1 and guard-2.5.1.

Was it helpful?

Solution

Ok I found out that I had the guard startup code multiple times in the guardfile. Removing all of them but one fixed the issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top