September 14, 2008 – 1:32 am
If you aren't entirely convinced about the importance of using Unit tests to test your Models after trying the steps found in the Importance of Unit Tests post, try these changes that continue on that example.
Again, Create an application folder
>rails testing
And again, Create a model, note* specify words to be a text string
testing>ruby script/generate [...]
September 8, 2008 – 8:11 pm
If you are new to writing Rails applications, as I am, you may wonder about the importance of writing tests, especially if everything works as expected in the browser. If so, try this very simple example that demonstrates the importance of testing the model with unit tests.
Create an application folder
>rails testing
Create a model, note* [...]