Sha256: d4440f2330db99f3bafcfb85d604d4345b847c171e664d755bfba1be3fdebc11
Contents?: true
Size: 414 Bytes
Versions: 4
Compression:
Stored size: 414 Bytes
Contents
require 'minitest/autorun' require 'minitest/pride' require 'minitest/spec' require 'mocha/setup' require File.expand_path('../../lib/minitest-chef-handler', __FILE__) # Borrowed from MiniTest def assert_triggered(expected) e = assert_raises(MiniTest::Assertion) do yield end msg = e.message.sub(/(---Backtrace---).*/m, '\1') msg.gsub!(/\(oid=[-0-9]+\)/, '(oid=N)') assert_match expected, msg end
Version data entries
4 entries across 4 versions & 1 rubygems