1
我刚刚更新了我的rspec和guard安装,因为在我用bundle exec guard
启动它后,每次更改后都会运行3次。那么,现在每当我改变我的代码中的东西时,它会运行5次。Rails rspec-guard多次运行
这是终端输出消息运行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
我认为,当我也许是有些地方的听众或其他什么东西被启动五次,但我找不到它。
更新 我使用guard-rspec-4.2.8
,rspec-2.14.1
和guard-2.5.1
。
你在使用什么版本的RSpec,guard和guard-rspec?如果你可以提供一个带有bug的示例应用程序,你可以在guard-rspec上创建一张票。 – rosenfeld
我用更多的信息更新了这个问题。那么这是一个已经投入生产的应用程序,所以要提取它的一部分并不容易。 rspec/guard配置文件是否足够? – Linus