Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `configure' for RSpec:Module on CircleCI #50

Closed
freemanoid opened this issue Apr 25, 2014 · 7 comments
Closed
Labels
Milestone

Comments

@freemanoid
Copy link

I started getting this error after migration to rails 4.1.0

I use sidekiq-pro

bundle exec rake db:create db:schema:load --trace
rake aborted!
NoMethodError: undefined method `configure' for RSpec:Module
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rspec-sidekiq-1.0.0/lib/rspec/sidekiq/batch.rb:31:in `<top (required)>'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rspec-sidekiq-1.0.0/lib/rspec-sidekiq.rb:3:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'
/home/ubuntu/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'
/home/ubuntu/seo_platform/config/application.rb:14:in `<top (required)>'
/home/ubuntu/seo_platform/Rakefile:4:in `require'
/home/ubuntu/seo_platform/Rakefile:4:in `<top (required)>'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/rake_module.rb:28:in `load'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:677:in `raw_load_rakefile'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:94:in `block in load_rakefile'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:93:in `load_rakefile'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:77:in `block in run'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/bin/rake:33:in `<top (required)>'
/home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
 /home/ubuntu/seo_platform/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'

Any thoughts?

@ezilocchi
Copy link

I found that it's related to the version of rspec-core. As part of Rails 4.1 dependencies upgrading rspec-core is being updated to version 2.14.8. I've tried forcing the version in my Gemfile to 2.14.7 and it worked for me.

@coffeejunk
Copy link

I get the same error on Travis CI

@ezilocchi
Copy link

Another interested finding is that it happens on Linux stations (At least Ubuntu) and not in Mac OS X. So if you are using a Mac probably you can't reproduce the error. Again I fixed it with this line on my Gemfile:

  gem 'rspec-core', '2.14.7'

@homanchou
Copy link
Contributor

I am getting similar error when i run RAILS_ENV=test rake db:drop

NoMethodError: undefined method `configure' for RSpec:Module
/Users/me/.rvm/gems/ruby-2.0.0-p353@sb/gems/rspec-sidekiq-1.0.0/lib/rspec/sidekiq/batch.rb:31:in `<top (required)>'. 

sidekiq-pro 1.7
sidekiq 3
rspec-sidekiq 1.0
rails 4.0.3

@philostler philostler added the bug label May 7, 2014
@philostler philostler added this to the 1.1.0 milestone May 7, 2014
@homanchou
Copy link
Contributor

Submitted a pull request for a my issue above: #51

@jkogara
Copy link
Contributor

jkogara commented May 27, 2014

@ezilocchi 👍

@philostler
Copy link
Collaborator

#51 now merged into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants