How to test a function that yields a block with Minitest and Rspec
Have you ever tried writing a test for a function that takes a block and does something to that block? I recently had to do that same thing and found there was not much written about it so in this post I’m going to fix that, I’m going to show you how to create expectations on block arguments. Read the article.
Post a comment