🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

You can go home now, I solved testing

Published 2015-01-15 @ 12:00

Tagged minitest, ruby

I need to work on a real blog post about this topic, but all I could come up with yesterday was this snarky snippet of code:

1
2
3
4
5
6
7
8
9
10
11
def test_some_method
  assert_something_output do
    assert_nothing_raised do
      assert_some_side_effect do
        assert_some_response do
          object.some_method # testing SOLVED
        end
      end
    end
  end
end

This is, of course, me responding to more resistance to minitest not having useless assertions like assert_nothing_raised. I’ve talked about it before. I’ve blogged about it before. Pretty sure it’ll never die.