Dave Copeland :ruby:
- 12mo ·
-
Public·
-
ruby.social
@soulcutter @noelrap Here is an approach I might take - using a module to abstract the stuff that figures out the test data, but leaving the tests themselves duplicative. This leaves the tests as examples—I get confused when the test doesn't call the method it’s testing.
https://gist.github.com/davetron5000/3df977075f7a4dbb67f44c424f3f2914