tags:

views:

28

answers:

1

I am making a gem, but how to test(not unit test, just make sure the program is right) it ?

Need I pack it and run every time when I modify it?

+1  A: 

You can create a rake task to open a new IRB instance and play with your library. Here's the code.

Simone Carletti
@Simone: That's a really neat idea. @why: I would say that you should pack and install every time that you modify a script in the bin directory of your gem, but ideally those scripts should have so little code that you rarely do edit them.
Stuart Ellis