diff options
author | John Barnette <jbarnette@gmail.com> | 2009-09-28 11:43:38 -0700 |
---|---|---|
committer | John Barnette <jbarnette@gmail.com> | 2009-09-28 11:43:38 -0700 |
commit | 2d31ee3a64a37a1cedb24303351d8023b9a87143 (patch) | |
tree | a0d208a89f3297c598c1330d6018f0518a1f1bd0 | |
parent | 0b3db166cd9e616fea231687d48582d53743ebe8 (diff) | |
download | psych-2d31ee3a64a37a1cedb24303351d8023b9a87143.zip |
Switch to MiniTest.
-rw-r--r-- | Rakefile | 1 | ||||
-rw-r--r-- | test/helper.rb | 2 | ||||
-rw-r--r-- | test/psych/test_parser.rb | 5 | ||||
-rw-r--r-- | test/psych/test_tree_builder.rb | 5 | ||||
-rw-r--r-- | test/test_psych.rb | 5 | ||||
-rw-r--r-- | test/visitors/test_to_ruby.rb | 5 |
6 files changed, 13 insertions, 10 deletions
@@ -15,6 +15,7 @@ Hoe.spec 'psych' do self.extra_rdoc_files = Dir['*.rdoc'] self.history_file = 'CHANGELOG.rdoc' self.readme_file = 'README.rdoc' + self.testlib = :minitest extra_dev_deps << ['rake-compiler', '>= 0.4.1'] 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 |