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:in
require’
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:in
require’
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:in
require’
… 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:in
run’
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.