From 2d31ee3a64a37a1cedb24303351d8023b9a87143 Mon Sep 17 00:00:00 2001 From: John Barnette Date: Mon, 28 Sep 2009 11:43:38 -0700 Subject: Switch to MiniTest. --- test/helper.rb | 2 -- test/psych/test_parser.rb | 5 +++-- test/psych/test_tree_builder.rb | 5 +++-- test/test_psych.rb | 5 +++-- test/visitors/test_to_ruby.rb | 5 +++-- 5 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 test/helper.rb (limited to 'test') diff --git a/test/helper.rb b/test/helper.rb deleted file mode 100644 index 8e77fed..0000000 --- a/test/helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -require "test/unit" -require "psych" diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb index 6cb113f..9c257a3 100644 --- a/test/psych/test_parser.rb +++ b/test/psych/test_parser.rb @@ -1,7 +1,8 @@ -require 'helper' +require 'minitest/autorun' +require 'psych' module Psych - class TestParser < Test::Unit::TestCase + class TestParser < MiniTest::Unit::TestCase class EventCatcher < Handler attr_reader :calls def initialize diff --git a/test/psych/test_tree_builder.rb b/test/psych/test_tree_builder.rb index 846532c..e916f31 100644 --- a/test/psych/test_tree_builder.rb +++ b/test/psych/test_tree_builder.rb @@ -1,7 +1,8 @@ -require 'helper' +require 'minitest/autorun' +require 'psych' module Psych - class TestTreeBuilder < Test::Unit::TestCase + class TestTreeBuilder < MiniTest::Unit::TestCase def setup @parser = Psych::Parser.new TreeBuilder.new @parser.parse(<<-eoyml) diff --git a/test/test_psych.rb b/test/test_psych.rb index cc32740..865024f 100644 --- a/test/test_psych.rb +++ b/test/test_psych.rb @@ -1,6 +1,7 @@ -require 'helper' +require 'minitest/autorun' +require 'psych' -class TestPsych < Test::Unit::TestCase +class TestPsych < MiniTest::Unit::TestCase #def test_simple # assert_equal 'foo', Psych.parse("--- foo\n") #end diff --git a/test/visitors/test_to_ruby.rb b/test/visitors/test_to_ruby.rb index aa98fbb..8cd29ac 100644 --- a/test/visitors/test_to_ruby.rb +++ b/test/visitors/test_to_ruby.rb @@ -1,8 +1,9 @@ -require 'helper' +require 'minitest/autorun' +require 'psych' module Psych module Visitors - class TestToRuby < Test::Unit::TestCase + class TestToRuby < MiniTest::Unit::TestCase def setup @visitor = ToRuby.new end -- cgit v1.2.3