[Rails] Re: Test rails model with Cucumber?

2009-10-15 Thread Gabriel Medina
Joshua Partogi wrote: > Hi all, > > Can I test my rails model with cucumber? Or is this not what cucumber > is used for? If it is, can anyone lead me to documentation on how to > use cuke to test Rails model please. I have read the cuke wiki rails > section, but I still can not understand how to

[Rails] Re: Test rails model with Cucumber?

2009-10-14 Thread Raimond Garcia
IMHO Cucumber is an excellent tool to use to on top of rspec to do unit testing. Dear Joshua, Doing unit tests with cucumber has not yet been approved as a best practice, but don't let that stop you from experimenting. Cucumber is no substitute for rspec , it's a complement, a way of writing

[Rails] Re: Test rails model with Cucumber?

2009-10-13 Thread Joshua Partogi
Hi Marnen, On Oct 14, 12:55 am, Marnen Laibow-Koser wrote: > Joshua Partogi wrote: > > Hi all, > > > Can I test my rails model with cucumber? Or is this not what cucumber > > is used for? If it is, can anyone lead me to documentation on how to > > use cuke to test Rails model please. I have read

[Rails] Re: Test rails model with Cucumber?

2009-10-13 Thread Marnen Laibow-Koser
Joshua Partogi wrote: > Hi all, > > Can I test my rails model with cucumber? Or is this not what cucumber > is used for? If it is, can anyone lead me to documentation on how to > use cuke to test Rails model please. I have read the cuke wiki rails > section, but I still can not understand how to

[Rails] Re: Test rails model with Cucumber?

2009-10-13 Thread Tim Riendeau
Cucumber is meant to be used for integration testing. You should use one of the unit test frameworks (rspec, shoulds, test::unit) to test your models specifically. --Tim Riendeau On Oct 13, 2009, at 9:02 AM, Joshua Partogi wrote: > > Hi all, > > Can I test my rails model with cucumber? Or