Sep
3rd
Mon
3rd
superclass mismatch for class Annotation
Running with Rails 1.2.3, Ruby 1.8.6, rake 0.7.3 and rspec 1.0.8, I was getting the following error when running rake:
rake -T project_name (in /home/apps/project_name) rake aborted! superclass mismatch for class Annotation
I solved the superclass mismatch error by removing the version number from the rspec directories in my Rails vendor/plugins directory:
cd vendor/plugins ls -a -> rspec-1.0.8 rspec_on_rails-1.0.8 mv rspec-1.0.8 rspec mv rspec_on_rails-1.0.8 rspec_on_rails ls -a -> rspec rspec_on_rails
To ensure the correct rspec directory is set in the load path, regenerate the script/spec file by running:
ruby script/generate rspec
Great, now we can get back to development! ;-)





