On Tue, Apr 7, 2009 at 6:20 PM, Andrew Zielinski <andrew.zielinski...@gmail.com> wrote: > > I hope somebody can help me with this. > > I can't seem to run spec_server with rails 2.3.2 using rspec/rspec-rails > 1.2.2. I'm also using mocha 0.9.5 and remarkable 2.3.0.
The stack trace doesn't show it, but the superclass mismatch suggests that you have a version of rspec pre 1.2 that is being loaded somewhere. The old ModelExampleGroup derived directly from Test::Unit::TestCase, but the 1.2 class derives from ActiveSupport::TestCase. Can you check to see what versions of rspec and rspec-rails you have installed and uninstall all the old ones if you can. HTH, David > > Thanks Andrew > > Here is the stack trace: > > --------------------------------- > > /Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.2/lib/spec/rails/example/model_example_group.rb:9: > superclass mismatch for class ModelExampleGroup (TypeError) > > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' > from > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in > `require' > from > /Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.2/lib/spec/rails/example.rb:6 > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' > from > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in > `require' > from /Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.2/lib/spec/rails.rb:19 > ... 9 levels... > from /Library/Ruby/Gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run' > from ./script/../config/environment.rb:13 > from ./script/spec_server:6:in `require' > from ./script/spec_server:6 > > > -- > View this message in context: > http://www.nabble.com/superclass-mismatch-for-class-ModelExampleGroup-%28TypeError%29-tp22940271p22940271.html > Sent from the rspec-users mailing list archive at Nabble.com. > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users