njmacinnes@gmail.com
2006-Jun-25 23:38 UTC
[Rails] Generate scaffold should create tests, discuss
I think script/generate scaffold should create corresponding tests (unit tests, in particular). Almost everyone new to rails learns by looking at the code that scaffolding creates, and people could also learn by looking at test code generated. Also, it would form a good starting point for TDD, if you''re into that sort of thing. Ok, so the main benefits of tests being generated are for newbies (although it would possibly make things a bit simpler in some situations for experienced users too), but I think it is quite a good idea. What do people think? -Nathan
Maybe Matching Threads
- generate scaffold not generating views
- script/generate scaffold pluralizes class names
- Creating incorrect plurals when generating scaffold
- error running generate scaffold - doesn''t see table which is there
- Heroku Garden - reversing or changing a 'generate scaffold' command