contrib/test_batched.rb in madeleine-0.7.3 vs contrib/test_batched.rb in madeleine-0.8.0.pre

- old
+ new

@@ -1,8 +1,9 @@ #!/usr/local/bin/ruby -w +# -*- coding: utf-8 -*- # -# Copyright(c) 2003 Håkan Råberg +# Copyright(c) 2003 HÃ¥kan RÃ¥berg # # Some components taken from test_persistence.rb # Copyright(c) 2003 Anders Bengtsson # @@ -12,11 +13,11 @@ require 'test/unit' require 'madeleine/clock' module Madeleine::Batch - class BatchedSnapshotMadeleineTest < Test::Unit::TestCase + class BatchedSnapshotMadeleineTest < MiniTest::Unit::TestCase class ArraySystem < Array include Madeleine::Clock::ClockedSystem end @@ -119,11 +120,11 @@ def teardown delete_directory(prevalence_base) end end - class BatchedLogTest < Test::Unit::TestCase + class BatchedLogTest < MiniTest::Unit::TestCase class MockMadeleine def initialize(logger) @logger = logger end @@ -234,12 +235,12 @@ suite << BatchedSnapshotMadeleineTest.suite suite << BatchedLogTest.suite end if __FILE__ == $0 - suite = Test::Unit::TestSuite.new("BatchedLogTest") + suite = MiniTest::Unit::TestSuite.new("BatchedLogTest") add_batched_tests(suite) require 'test/unit/ui/console/testrunner' Thread.abort_on_exception = true - Test::Unit::UI::Console::TestRunner.run(suite) + MiniTest::Unit::UI::Console::TestRunner.run(suite) end