Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@kimihito_

Guardが動かない。

More than 5 years have passed since last update.

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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
kimihito_
株式会社ミノタケというひとりぼっちの会社でRailsやらなんやらを書いています。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?