I'm using the following:
Rails 4.1.1
guard-zeus 2.0.0
rspec-rails 3.0.1
Out of box default rails g rspec:install
and guard init
When I run guard
and save a spec file, I get the error:
undefined method `configure` for RSpec:Module (NoMethodError)
I can run specs with rspec spec
and rake
just fine.
In spec_helper
, if I require 'rspec/rails
before the configure block,
guard works fine, but then rspec spec
fails with the error:
uninitialized constant ActiveSupport::Autoload (NameError)
I'm guessing there's a problem with load order now that rails_helper
and spec_helper
are separated.
Two questions:
- How can I fix this?
- Is there a different solution for continuous integration locally that you can recommend that works with latest Rails and Rspec.
You only have to answer one question.