Rspec crashes if any tests have failed - is this normal?

I just installed spec (plugin) and rspec_on_rails. It seems to work,
but if any tests have failed, after doing the report it seems to crash,
with this message -

5 examples, 2 failures
rake aborted!
Command ruby
-I"/home/jars/rails/lesson_planner/branches/max/vendor/plugins/rspec/lib"
“/home/jars/rails/lesson_planner/branches/max/vendor/plugins/rspec/bin/spec”
“spec/models/instrument_name_spec.rb” --options
“/home/jars/rails/lesson_planner/branches/max/spec/spec.opts” failed

Is this normal? It’s a bit disconcerting, making me worry i’ve not got
it set up right.

thanks
max

no, it’s not normal. we’re using rspec since a few months and had nor
trouble like that (sorry, so i can’t help you there. by the way in such
cases it may be helpful to post a few details about your setup, os,
rails version etc)
the only trouble we had are with namespaces, we have to touch part of
our specs once in a while.

Thorsten M. wrote:

no, it’s not normal. we’re using rspec since a few months and had nor
trouble like that (sorry, so i can’t help you there. by the way in such
cases it may be helpful to post a few details about your setup, os,
rails version etc)
the only trouble we had are with namespaces, we have to touch part of
our specs once in a while.

Thanks Thorsten - here’s some details in case anyone else can help -

I’m using
ubuntu linux 7.10 (in a vm in windows)
our project is using rails 1.2.3
rspec plugin Version 1.1.3
rspec_on_rails - i can’t find the version, but i installed it from this
url yesterday if that’s any use:
http://rspec.rubyforge.org/svn/tags/CURRENT/rspec_on_rails

I managed to fix/work around my problem:

if i do

ruby script/spec spec

it’s fine, it’s only when i do

rake spec

that it crashes when tests fail.

Still curious as to why it crashed though…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs