27 Apr '16, 9pm

How to test a function that yields a block with Minitest and Rspec

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found! How to test a function that yields a block with Minitest and Rspec by Cezar Halmagean — Today 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 You can use basic HTML markup (e.g. <a>) or Markdown. Authenticate with GitHub As you are not logged in, you will be directed via GitHub to signup or sign in

Full article: http://www.rubyflow.com/p/cgjsv2-how-to-test-a-function-t...

Tweets

Ferrari CEO Takes a Tesla for a Test Drive

Ferrari CEO Takes a Tesla for a Test Drive

hybridcars.com 26 Apr '16, 9pm

Electric cars are known for ferocious acceleration, and so are Ferraris. Ferrari CEO Sergio Marchionne took a Tesla for a ...

@LiteraryMarie Here's one of the block heel sandals I have my eye on,

@LiteraryMarie Here's one of the block heel san...

stevemadden.com 29 Apr '16, 11am

Turn heads in the CHRISTEY high-heel suede sandals that lace up your leg for tastefully sultry styling. Pair with a woven ...

Audio App Anchor is the Cool New Kid on the Social Media Block by @mindydweinstein

Audio App Anchor is the Cool New Kid on the Soc...

searchenginejournal.com 28 Apr '16, 10am

Share your thoughts: Are you an expert in your field? Record waves that allow you to generously share your expertise with ...