Unit Tests and lib/

Hi *, I have a few modules in lib/ and I use them mostly in my models.
I’d like to add a few unit tests and run them with rake with all
other tests of my app: where do I have to write them ?

TIA,
ngw

Just follow naming conventions and throw them into the test/unit
directory.

Il giorno 17/ago/06, alle ore 19:29, Todd Makinster ha scritto:

Just follow naming conventions and throw them into the test/unit
directory.

Sorry, I don’t think I’m following you :slight_smile:
What naming conventions ?

TIA,
ngw

Jim is correct. Sorry I was so terse…should have explained myself
better.

I found that by naming them something_test.rb (and placing them in the
test/unit directory as previously mentioned) the rake test:units task
picked
them up just fine.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs