I've inherited an old project from another dev which runs on Ruby 1.8 and uses Rails 2. I'm very new to Ruby and Rails project so I wanted to get advice about upgrading such types of project. One major problem with this project is that it has not test coverage. No unit tests at all. Here is some project stats:
$ cloc .
http://cloc.sourceforge.net v 1.56 T=3.0 s (149.3 files/s, 15714.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Ruby 379 3106 1476 15246
Javascript 18 2981 2369 11008
CSS 16 690 1208 7156
HTML 21 324 69 1039
YAML 13 46 164 236
Bourne Shell 1 2 5 17
-------------------------------------------------------------------------------
SUM: 448 7149 5291 34702
-------------------------------------------------------------------------------
My plan is to start a new Rails project and write tests see theme fail and then bit by bit bring in old code, update the parts that need updating and go forward.
Is this as daunting as I've been told? Is the above approach realistic? What are some pitfalls I should look out for?