RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

chriskottom — 5 posts

http://chriskottom.com

Fixing Fixtures  chriskottom.com
For a long time, using Rails fixtures was considered bad form, but in recent years, a lot of developers have come back around to using them. This post provides tips and practices for simplifying your fixtures and making them easier to manage.
RSpec gives you a number of ways of setting up prior to test runs, but only some of these have direct analogs in Minitest. In this post, I show you the code that will let you approximate RSpec's features (and explain when and why you might want to avoid using it).

http://chriskottom.com/blog/2014/10/4-fantastic-ways-to-set-up-state-in-minitest/
Practical advice for Minitest's parallelization including how it works, when and how to use it, and when you might want to think twice about it.
http://chriskottom.com/blog/2014/10/exploring-minitest-concurrency/
Minitest earns a lot of praise for being simple to pick up, but did you know that you can add your own custom assertions and expectations to make your tests read the way you want them to?
Hacking Minitest output for fun and profit:
http://chriskottom.com/blog/2014/06/dress-up-your-minitest-output/