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

**URL:** <https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792>\
**Category:** Rails\
**Created:** [February 1, 2008, 11:23am UTC](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792 "2008-02-01T11:23:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 1, 2008, 11:23am UTC](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792/1 "2008-02-01T11:23:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 1, 2008, 11:42am UTC](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792/2 "2008-02-01T11:42:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 1, 2008, 11:57am UTC](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792/3 "2008-02-01T11:57:08Z")

</div>

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](http://rspec.rubyforge.org/svn/tags/CURRENT/rspec_on_rails)

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [February 1, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792/4 "2008-02-01T12:07:18Z")

</div>

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…
