1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Dave Copeland :ruby:

@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.

gist.github.com/davetron5000/3

Screenshot of the code that is available in the Gist linked-to in the toot
1
12mo
Replies