Uncomment if you want awesome colorful output require "minitest/pride"
# File lib/minitest/rails/active_support.rb, line 45 def self.for_tag(tag) yield if $tags[tag] end
This is deprecated, but I don't want to change the Rails calls to it. Keep it here for now, until a better way presents itself...
# File lib/minitest/rails/active_support.rb, line 22 def assert_block msg = nil msg = message(msg) { "Expected block to return true value" } assert yield, msg end
# File lib/minitest/rails/active_support.rb, line 62 def assert_nothing_raised(*args) yield end
For backward compatibility with Test::Unit
# File lib/minitest/rails/active_support.rb, line 35 def build_message(message, template = nil, *args) template = template.gsub('<?>', '<%s>') message || sprintf(template, *args) end