C
Caleb Clausen
Ok, so I have to admit that I hate writing unit tests. I know that's
not orthodox. But it just seems like... work. I didn't get into this
for drudgery.
On the other hand, playing around with irb doesn't seem like work. It
seems like playing. Even tho I might end up testing the exact same
things. Irb is kind of like a polaroid camera: instant gratification.
I want to bring this level of instant interactivity to the process of
writing
automated tests.
So, is there a way to save a set of irb commands that I just typed to
a file, so they can be rerun later? Better yet, I'd like to save the
results of the commands too, and check to see if any results have
changed on a re-run.
not orthodox. But it just seems like... work. I didn't get into this
for drudgery.
On the other hand, playing around with irb doesn't seem like work. It
seems like playing. Even tho I might end up testing the exact same
things. Irb is kind of like a polaroid camera: instant gratification.
I want to bring this level of instant interactivity to the process of
writing
automated tests.
So, is there a way to save a set of irb commands that I just typed to
a file, so they can be rerun later? Better yet, I'd like to save the
results of the commands too, and check to see if any results have
changed on a re-run.