# Newbie question

**URL:** <https://www.ruby-forum.com/t/newbie-question/98993>\
**Category:** Ruby\
**Created:** [July 19, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/newbie-question/98993 "2006-07-19T17:10:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a6a055/32.png) [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Post date:** [July 19, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/newbie-question/98993/1 "2006-07-19T17:10:15Z")

</div>

Hello everybody, I’m new with Ruby on Rails and I’m using RadRails as my  
text editor. I need to write a class that parses a file but I don’t  
quiet understand how test my script files on RadRails…does anybody  
have any idea?

Thanks

ricardo

---

<div class="post-metadata">

**Author:** ![ricardo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a6a055/32.png) [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Post date:** [July 19, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/newbie-question/98993/2 "2006-07-19T20:53:20Z")

</div>

On Jul 19, 2006, at 11:10 AM, Ricardo F. wrote:

> Hello everybody, I’m new with Ruby on Rails and I’m using RadRails  
> as my  
> text editor. I need to write a class that parses a file but I don’t  
> quiet understand how test my script files on RadRails…does anybody  
> have any idea?
> 
> Thanks
> 
> ricardo

If you write your test as a unit test (Test::Unit::TestCase) you can  
just do “Run as… \> Test::Unit” on the test case file (Green “play”  
button on the toolbar). You’ll even get a little red/green bar for  
fail/pass. This feature is provided by RDT, so if you google for  
that you might find more info.

There are also some toolbar buttons in the Rails perspective for  
running Rails test suites (functional, unit, etc.) You could do that  
too if they’re in the Rails test locations.  
-Mat
