문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top