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

4.1.0 superclass mismatch for class RSpec (TypeError) #222

Closed
masterkain opened this issue Dec 3, 2013 · 11 comments · Fixed by #289
Closed

4.1.0 superclass mismatch for class RSpec (TypeError) #222

masterkain opened this issue Dec 3, 2013 · 11 comments · Fixed by #289

Comments

@masterkain
Copy link

I get this when attempting to run the tests, just upgraded to 4.1.0:

...
10:35:13 - INFO - Running: spec/models/user_amazon_spec.rb
/Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/guard-rspec-4.1.0/lib/guard/rspec.rb:5:in `<module:Guard>': superclass mismatch for class RSpec (TypeError)
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/guard-rspec-4.1.0/lib/guard/rspec.rb:4:in `<top (required)>'
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/bundler-1.5.0.rc.1/lib/bundler/runtime.rb:85:in `require'
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/bundler-1.5.0.rc.1/lib/bundler/runtime.rb:85:in `rescue in block in require'
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/bundler-1.5.0.rc.1/lib/bundler/runtime.rb:68:in `block in require'
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/bundler-1.5.0.rc.1/lib/bundler/runtime.rb:61:in `each'
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/bundler-1.5.0.rc.1/lib/bundler/runtime.rb:61:in `require'
  from /Users/kain/.rvm/gems/ruby-2.1.0-preview2@myapp/gems/bundler-1.5.0.rc.1/lib/bundler.rb:131:in `require'
...
@thibaudgg
Copy link
Member

@907th Have you an idea about that one? Thanks!

@907th
Copy link
Contributor

907th commented Dec 3, 2013

I don't =\

@907th
Copy link
Contributor

907th commented Dec 3, 2013

@masterkain could you paste your Gemfile.lock?

@thibaudgg
Copy link
Member

Yes, having your Guardfile & Gemfile would help as well.

@sloops77
Copy link

sloops77 commented Dec 3, 2013

Same issue - attaching requested files

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.1'
gem 'puma'
#gem 'unicorn'

# Use postgresql as the database for Active Record
gem 'pg'
gem 'database_cleaner'
gem 'habtm_generator'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

gem "active_model_serializers", "~> 0.8.0"

#gem 'sidekiq'
gem 'sidetiq', '~> 0.4.3'
gem 'rest-client'

gem 'newrelic_rpm'#, group: :production

gem 'rails_12factor', group: :production

ruby '2.0.0'

group :test, :development do
  gem "rspec-rails", '~> 2.0'

end

group :test do
  gem 'shoulda-matchers'
  gem "factory_girl_rails"
  gem "capybara"
  gem "guard-rspec"
end
GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.0.1)
      actionpack (= 4.0.1)
      mail (~> 2.5.4)
    actionpack (4.0.1)
      activesupport (= 4.0.1)
      builder (~> 3.1.0)
      erubis (~> 2.7.0)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    active_model_serializers (0.8.1)
      activemodel (>= 3.0)
    activemodel (4.0.1)
      activesupport (= 4.0.1)
      builder (~> 3.1.0)
    activerecord (4.0.1)
      activemodel (= 4.0.1)
      activerecord-deprecated_finders (~> 1.0.2)
      activesupport (= 4.0.1)
      arel (~> 4.0.0)
    activerecord-deprecated_finders (1.0.3)
    activesupport (4.0.1)
      i18n (~> 0.6, >= 0.6.4)
      minitest (~> 4.2)
      multi_json (~> 1.3)
      thread_safe (~> 0.1)
      tzinfo (~> 0.3.37)
    arel (4.0.1)
    atomic (1.1.14)
    builder (3.1.4)
    capybara (2.2.0)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    celluloid (0.15.2)
      timers (~> 1.1.0)
    coderay (1.1.0)
    coffee-rails (4.0.1)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.6.3)
    connection_pool (1.1.0)
    database_cleaner (1.2.0)
    diff-lcs (1.2.5)
    erubis (2.7.0)
    execjs (2.0.2)
    factory_girl (4.3.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.3.0)
      factory_girl (~> 4.3.0)
      railties (>= 3.0.0)
    ffi (1.9.3)
    formatador (0.2.4)
    guard (2.2.4)
      formatador (>= 0.2.4)
      listen (~> 2.1)
      lumberjack (~> 1.0)
      pry (>= 0.9.12)
      thor (>= 0.18.1)
    guard-rspec (4.1.0)
      guard (>= 2.1.1)
      rspec (~> 2.14)
    habtm_generator (0.1)
      activerecord (> 3.1)
    hike (1.2.3)
    i18n (0.6.5)
    ice_cube (0.11.1)
    jbuilder (1.5.2)
      activesupport (>= 3.0.0)
      multi_json (>= 1.2.0)
    jquery-rails (3.0.4)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    json (1.8.1)
    listen (2.3.1)
      celluloid (>= 0.15.2)
      rb-fsevent (>= 0.9.3)
      rb-inotify (>= 0.9)
    lumberjack (1.0.4)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    method_source (0.8.2)
    mime-types (1.25)
    mini_portile (0.5.2)
    minitest (4.7.5)
    multi_json (1.8.2)
    newrelic_rpm (3.6.9.171)
    nokogiri (1.6.0)
      mini_portile (~> 0.5.0)
    pg (0.17.0)
    polyglot (0.3.3)
    pry (0.9.12.4)
      coderay (~> 1.0)
      method_source (~> 0.8)
      slop (~> 3.4)
    puma (2.6.0)
      rack (>= 1.1, < 2.0)
    rack (1.5.2)
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (4.0.1)
      actionmailer (= 4.0.1)
      actionpack (= 4.0.1)
      activerecord (= 4.0.1)
      activesupport (= 4.0.1)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.0.1)
      sprockets-rails (~> 2.0.0)
    rails_12factor (0.0.2)
      rails_serve_static_assets
      rails_stdout_logging
    rails_serve_static_assets (0.0.1)
    rails_stdout_logging (0.0.3)
    railties (4.0.1)
      actionpack (= 4.0.1)
      activesupport (= 4.0.1)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.1.0)
    rb-fsevent (0.9.3)
    rb-inotify (0.9.2)
      ffi (>= 0.5.0)
    rdoc (3.12.2)
      json (~> 1.4)
    redis (3.0.6)
    redis-namespace (1.3.2)
      redis (~> 3.0.4)
    rest-client (1.6.7)
      mime-types (>= 1.16)
    rspec (2.14.1)
      rspec-core (~> 2.14.0)
      rspec-expectations (~> 2.14.0)
      rspec-mocks (~> 2.14.0)
    rspec-core (2.14.7)
    rspec-expectations (2.14.4)
      diff-lcs (>= 1.1.3, < 2.0)
    rspec-mocks (2.14.4)
    rspec-rails (2.14.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 2.14.0)
      rspec-expectations (~> 2.14.0)
      rspec-mocks (~> 2.14.0)
    sass (3.2.12)
    sass-rails (4.0.1)
      railties (>= 4.0.0, < 5.0)
      sass (>= 3.1.10)
      sprockets-rails (~> 2.0.0)
    sdoc (0.3.20)
      json (>= 1.1.3)
      rdoc (~> 3.10)
    shoulda-matchers (2.4.0)
      activesupport (>= 3.0.0)
    sidekiq (2.15.2)
      celluloid (>= 0.15.2)
      connection_pool (>= 1.0.0)
      json
      redis (>= 3.0.4)
      redis-namespace (>= 1.3.1)
    sidetiq (0.4.3)
      celluloid (>= 0.14.1)
      ice_cube (~> 0.11.0)
      sidekiq (~> 2.15.0)
    slop (3.4.7)
    sprockets (2.10.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    thor (0.18.1)
    thread_safe (0.1.3)
      atomic
    tilt (1.4.1)
    timers (1.1.0)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    turbolinks (1.3.0)
      coffee-rails
    tzinfo (0.3.38)
    uglifier (2.3.0)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    xpath (2.0.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  active_model_serializers (~> 0.8.0)
  capybara
  coffee-rails (~> 4.0.0)
  database_cleaner
  factory_girl_rails
  guard-rspec
  habtm_generator
  jbuilder (~> 1.2)
  jquery-rails
  newrelic_rpm
  pg
  puma
  rails (= 4.0.1)
  rails_12factor
  rest-client
  rspec-rails (~> 2.0)
  sass-rails (~> 4.0.0)
  sdoc
  shoulda-matchers
  sidetiq (~> 0.4.3)
  turbolinks
  uglifier (>= 1.3.0)
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard :rspec do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }

  # Rails example
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$})          { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }

  # Capybara features specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$})     { |m| "spec/features/#{m[1]}_spec.rb" }

  # Turnip features and steps
  watch(%r{^spec/acceptance/(.+)\.feature$})
  watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$})   { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end

@johvet
Copy link

johvet commented Dec 4, 2013

Same issue here

@mpxc8102
Copy link

mpxc8102 commented Dec 4, 2013

I too was having the same issue, I ended up downgrading for now.

@907th
Copy link
Contributor

907th commented Dec 4, 2013

@sloops77 Thanks! I reproduced the error. I'm trying to fix it

@907th
Copy link
Contributor

907th commented Dec 4, 2013

Should be fixed by #225. Please, test

@masterkain
Copy link
Author

works for me, thanks.

@sloops77
Copy link

sloops77 commented Dec 4, 2013

👍

@e2 e2 mentioned this issue Nov 6, 2014
e2 added a commit that referenced this issue Nov 6, 2014
e2 added a commit that referenced this issue Nov 6, 2014
e2 added a commit that referenced this issue Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants