Skip to content

Comment on Ask HN: How did you learn to properly build tests?

Comments

take a simple piece of functionality, decide what you expect it to do, and write a test to check that it does it. It isn't complex - start with the simplest thing that works - minitest is integrated into Ruby, so use that. Write a single test to test a method on one of your models. Build it up from there.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.