I've installed the guard-rspec gem for use in my rails application. When I start up guard from the command line via bundle exec guard
, it runs my entire test suite the first time with no problem.
However, any time I make any changes to a spec file or any watched files as specified in my Guardfile, Guard doesn't seem to recognize the changes and no tests are rerun.
I even tried putting something every explicit in my Guardfile like this:
watch("app/views/orders/new.html.erb") { "spec/requests/orders_spec.rb" }
which should trigger my orders_spec.rb
test to run when I edit and save new.html.erb
correct? Well, when I edit it and hit save, nothing happens, not even an error or a warning.
Has anyone had any luck running Guard on windows or encountered a similar problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…