RSpec - superclass mismatch

Today I was installing the rspec plugin for my railsapp. Installation
works fine but after I tried to run ‘rake spec’ I got:


c:/ruby/lib/ruby/gems/1.8/gems/ZenTest-3.4.2/test/test_help.rb:5:
superclass mis
match for class TestSession (TypeError)
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo rt/dependencies.rb:147:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/ZenTest-3.4.2/lib/test/rails.rb:2
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo rt/dependencies.rb:147:inrequire’
from
D:/CODE-X/stellen-espace/website/stellen-espace/vendor/plugins/rsp
ec/lib/extensions/test/rails.rb:2
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo rt/dependencies.rb:147:inrequire’
… 15 levels…
from ./spec/models/job_spec.rb:1
from
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.7.2/lib/spec/runner/command

line.rb:21:in run' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.7.2/lib/spec/runner/command_ line.rb:15:inrun’
from c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.7.2/bin/spec:4
rake aborted!
RSpec failures


Superclass mismatch was leading me to the assumption that I defined the
class (TestSession) multiple times (through a wrong configuration or so)
but I did not find the solution.

I have tests and specs now. This should work isn’t it? Does anyone have
an idea.
If I run ‘rake test’ I have the same issue.

Thanks in advance.
h.

I am working on Windows XP
with Rails 1.1.6
and Ruby 1.8.4
and RSpec-0.7.2
and ZenTest (3.4.2)

Once again it was a version problem. I uninstalled ZenTest-3.4.2 and
installed ZenTest-3.4.1. This solved the problem.

Thanks anyway. Best regards.

On Mon, 20 Nov 2006 22:17:24 +0100, Chris H. wrote:

Today I was installing the rspec plugin for my railsapp. Installation
works fine but after I tried to run ‘rake spec’ I got:

Yep, ZenTest 3.4.2 broke that in rspec. If you can downgrade to 3.4.1,
you’ll be fine. Or you can upgrade rspec to trunk, where the dependency
on
ZenTest has been removed, and you’ll also be fine.

Jay L.