Sha256: a3fed1cc96da62b3619b0177f2d55a9fde631bd8ad6c9817dec1e56396981936
Contents?: true
Size: 601 Bytes
Versions: 9
Compression:
Stored size: 601 Bytes
Contents
require 'test/unit' require 'rubygems' # gem install redgreen for colored test output begin require 'redgreen'; rescue LoadError; end require 'boot' unless defined?(ActiveRecord) class Test::Unit::TestCase protected def assert_respond_to_all object, methods methods.each do |method| [method.to_s, method.to_sym].each { |m| assert_respond_to object, m } end end end # Wrap tests that use Mocha and skip if unavailable. def uses_mocha(test_name) require 'mocha' rescue LoadError $stderr.puts "Skipping #{test_name} tests. `gem install mocha` and try again." else yield end
Version data entries
9 entries across 9 versions & 1 rubygems