Skip to content
Browse files

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

  • Loading branch information...
1 parent 021a941 commit 2ed523e951fa5bfdf6ddf8cf0c3ee9cfaa0e9295 @dagbrown committed Jan 30, 2011
View
2 test.rb
@@ -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
2 test/gurgitate-test.rb
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
11 test/runtests.rb
@@ -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
2 test/test_deliver.rb
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_delivery.rb
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_gurgitate_delivery.rb
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_header.rb
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_headers.rb
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_headers_meddling_with_headers.rb
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_mail_headers.rb
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_mail_headers_meddling_with_headers.rb
@@ -1,3 +1,5 @@
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_process.rb
@@ -4,6 +4,8 @@
$:.unshift builddir
end
+require 'rubygems'
+gem 'test-unit'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'stringio'
View
2 test/test_writing.rb
@@ -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.
Something went wrong with that request. Please try again.