module Support
  module NothingRaised
    # Inspired by assert_raises from minitest
    def assert_nothing_raised(&block)
      block.call
    rescue Exception => e
      flunk "No exception expected, but #{mu_pp(e.class)} was raised."
    end
  end
end
