Now its time to get started. I wanna write some code. As mentioned before, I consider having tests as a MUST. Hence I will use Test::Unit from the first minute on. But how and where to start?
Of course the official reference helps: http://www.ruby-doc.org/core/classes/Test/Unit.html
Further on I had to have a short look what modules are about (I have to admit the "Test::Unit" notation reminded me far to much of PERL...) Look here: http://www.rubyfleebie.com/an-introduction-to-modules-part-1/ and here:
http://www.rubyfleebie.com/an-introduction-to-modules-part-2/
And the most important help for me was this tiny little post: But http://www.clarkware.com/cgi/blosxom/2005/03/18/RLT1 I really like the idea of just testing what the ruby language offers. Why reading books when you can play. Well, not poking around only, the combination of reading the specs and then trying/testing whether or not I got everything right is cool!
Result: I committed my first unit test to GitHub: http://github.com/SlevinMcGuigan/SMG--learn :-D :-D :-D
Keine Kommentare:
Kommentar veröffentlichen