class MiniTest::Rails::ActiveSupport::TestCase

Uncomment if you want awesome colorful output require "minitest/pride"

Constants

Assertion

Public Class Methods

for_tag(tag) { || ... } click to toggle source
# File lib/minitest/rails/active_support.rb, line 45
def self.for_tag(tag)
  yield if $tags[tag]
end

Public Instance Methods

assert_block(msg = nil) { || ... } click to toggle source

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
assert_nothing_raised(*args) { || ... } click to toggle source
# File lib/minitest/rails/active_support.rb, line 62
def assert_nothing_raised(*args)
  yield
end
build_message(message, template = nil, *args) click to toggle source

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