Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Put your Ruby tests in comments. (github.com/delano)
1 point by delano on July 18, 2010 | hide | past | favorite | 1 comment


I find that I don't mind spending time writing tests when I can also use them as sample code. Usually tests have a lot of visual junk that gets in the way. I've been playing around with different solutions for about a year and I just released the latest incarnation:

    ## A very simple test
      1 + 1
    #=> 2




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: