# ZenTest

**URL:** <https://www.ruby-forum.com/t/zentest/90699>\
**Category:** Rails\
**Created:** [March 31, 2007, 4:05am UTC](https://www.ruby-forum.com/t/zentest/90699 "2007-03-31T04:05:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlwinter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecccb3/32.png) [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Post date:** [March 31, 2007, 4:05am UTC](https://www.ruby-forum.com/t/zentest/90699/1 "2007-03-31T04:05:31Z")

</div>

Hi all,

I just discovered a nifty gem call ZenTest. I’ve just stated playing  
around with the autotest command, which seem very cool and looks like  
a nice time saver.

But, I did notice one very minor thing. When I use ^c to stop the  
program I get the following error message:

^CInterrupt a second time to quit  
^C/usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/autotest.rb:  
131:in `initialize': wrong number of arguments (0 for 1) (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/ autotest.rb:131:in`exception’  
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/  
autotest.rb:131:in `raise' from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/ autotest.rb:131:in`add\_sigint\_handler’  
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/  
autotest.rb:274:in `call' from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/ autotest.rb:274:in`sleep’  
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/  
autotest.rb:274:in `wait_for_changes' from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/ autotest.rb:101:in`get\_to\_green’  
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/  
autotest.rb:84:in `run' from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/ autotest.rb:82:in`loop’  
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/  
autotest.rb:82:in `run' from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/ autotest.rb:62:in`run’  
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/bin/  
autotest:45  
from /usr/local/bin/autotest:16:in `load’  
from /usr/local/bin/autotest:16

Anyone know if this is a bug or am I exiting the program improperly?

Thanks once again to the great Ruby community for coming up with such  
cool stuff.  
Robert

---

<div class="post-metadata">

**Author:** ![rlwinter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecccb3/32.png) [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Post date:** [April 7, 2007, 12:08am UTC](https://www.ruby-forum.com/t/zentest/90699/2 "2007-04-07T00:08:33Z")

</div>

So does anyone have any ideas about this?

---

<div class="post-metadata">

**Author:** ![rlwinter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecccb3/32.png) [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Post date:** [April 8, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/zentest/90699/3 "2007-04-08T18:01:35Z")

</div>

Robert W. wrote:

> > But, I did notice one very minor thing. When I use ^c to stop the  
> > from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.4.3/lib/  
> > autotest.rb:84:in `run’

Hitting Ctrl-C should interrupt autotest and run all the tests from the  
top (not just what you’ve just changed). Hitting Ctrl-C twice, should  
exit autotest entirely. Are you seeing some other behaviour?

## Chris

[http://www.autopendium.co.uk](http://www.autopendium.co.uk) :: stuff about old cars

---

<div class="post-metadata">

**Author:** ![rlwinter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecccb3/32.png) [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Post date:** [April 9, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/zentest/90699/4 "2007-04-09T17:32:07Z")

</div>

The only other behavior I’m seeing that the attached errors displayed  
in the terminal window when hitting ^C the second time. It exits  
fine, just not cleanly.
