LoginSignup
3
3

More than 5 years have passed since last update.

Guardが動かない。

Posted at

Rails4時代の高速テスト環境 Rspec+Guard+FactoryGirl+Spring[NEW!] - Qiitaを参考に設定していたら、どうしてもguardが動かない。

`block in setup': You have already activated timers 2.0.0, but your Gemfile requires timers 1.1.0. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

が出て、RSpecが走らなかったので、その解決策のメモ。

解決方法

gem cleanupで古いGemを綺麗にした後、

guard :rspec, cmd: 'bundle exec rspec' do
end

と書いて解決させた。

(コマンド指定してるだけだからあんまり良い解決方法だとは思わないなぁ)

参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3