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?

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