ffmike (owner)

Revisions

gist: 186164 Download_button fork
public
Description:
Use Test::Unit 2.0 if present, otherwise work with 1.0
Public Clone URL: git://gist.github.com/186164.git
Embed All Files: show embed
preinitializer.rb #
1
2
3
4
5
6
7
8
# Use this preinitializer to allow Rails projects to work after installing
# Test::Unit 2.0, without forcing everyone on the project to install it.
begin
  require 'rubygems'
  gem 'test-unit', '~> 2.0'
rescue Gem::LoadError
  puts "Could not find Test::Unit 2.0, ignoring"
end