Create a gist now

Instantly share code, notes, and snippets.

Use Test::Unit 2.0 if present, otherwise work with 1.0
# place at the top of test_helper.rb:
require 'rubygems'
gem 'test-unit', '~> 2.0'
rescue Gem::LoadError
puts "Could not find Test::Unit 2.0, ignoring"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment