Permalink
Browse files

Tests: made them work in a way compatible with ruby 1.9.

  • Loading branch information...
dagbrown committed Jan 30, 2011
1 parent 021a941 commit 2ed523e951fa5bfdf6ddf8cf0c3ee9cfaa0e9295
View
@@ -4,6 +4,8 @@
# Unit tests for gurgitate-mail
#------------------------------------------------------------------------
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -1,12 +1,7 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
-tester = nil
-begin
- require 'test/unit/ui/console/testrunner'
- tester = Test::Unit::UI::Console::TestRunner
-rescue LoadError # ruby 1.9
- require 'test/unit'
- tester = Test::Unit
-end
+require 'test/unit/ui/console/testrunner'
require 'stringio'
require 'pathname'
View
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'

0 comments on commit 2ed523e

Please sign in to comment.