我的 gemfile 中安装了“guard-rspec”gem:
group :development do
gem "guard-rspec"
gem "growl"
end
当我运行警卫时,它会执行我的 rspec 单元测试并在最后输出此消息:
Finished in 2.69 seconds
81 examples, 0 failures, 4 pending
/Users/KevinPang/.rvm/gems/ruby-1.9.2-p180/bin/rspec: No such file or directory - growlnotify --version
请注意,如果我实际上在终端中输入了该路径(/Users/KevinPang/.rvm/gems/ruby-1.9.2-p180/bin/rspec),它会执行 rspec:
/Users/KevinPang/.rvm/gems/ruby-1.9.2-p180/bin/rspec
No examples found.
Finished in 0.00003 seconds
0 examples, 0 failures