adacosta/mongoid_rails_migrations

Mongoid rails migrations not working with rspec guard

Closed this issue · 4 comments

When I am running all the test using RSpec guard and mongoid_rails_migrations, I am getting

bundler: failed to load command: rspec (/home/vivek/.rbenv/versions/2.3.1/bin/rspec)
LoadError: cannot load such file -- active_model/naming

But when I remove the gem from my Gemfile, RSpec guard runs fine.

rmm5t commented

I just experienced the exact same issue after trying to introduce guard to an existing project.

rmm5t commented

I was able to workaround this issue by relying on a bin/rspec binstub in the project instead of letting guard run bundle exec rspec:

guard :rspec, cmd: "bin/rspec" do
# ...
end

This appears to have been fixed on master.

Master has been released as 1.1.1