summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/psych/test_emitter.rb (renamed from test/yaml/test_emitter.rb)0
-rw-r--r--test/psych/test_parser.rb1
-rw-r--r--test/psych/test_struct.rb5
-rw-r--r--test/yaml/test_array.rb2
-rw-r--r--test/yaml/test_boolean.rb2
-rw-r--r--test/yaml/test_class.rb2
-rw-r--r--test/yaml/test_exception.rb2
-rw-r--r--test/yaml/test_hash.rb2
-rw-r--r--test/yaml/test_null.rb2
-rw-r--r--test/yaml/test_omap.rb2
-rw-r--r--test/yaml/test_set.rb2
-rw-r--r--test/yaml/test_string.rb2
-rw-r--r--test/yaml/test_symbol.rb2
13 files changed, 14 insertions, 12 deletions
diff --git a/test/yaml/test_emitter.rb b/test/psych/test_emitter.rb
index d617353..d617353 100644
--- a/test/yaml/test_emitter.rb
+++ b/test/psych/test_emitter.rb
diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb
index d6d81ef..197dde7 100644
--- a/test/psych/test_parser.rb
+++ b/test/psych/test_parser.rb
@@ -21,6 +21,7 @@ module Psych
end
def setup
+ super
warn "#{name}" if ENV['TESTOPTS'] == '-v'
@parser = Psych::Parser.new EventCatcher.new
end
diff --git a/test/psych/test_struct.rb b/test/psych/test_struct.rb
index 1fb8149..3d3b9bc 100644
--- a/test/psych/test_struct.rb
+++ b/test/psych/test_struct.rb
@@ -1,7 +1,8 @@
-require 'helper'
+require 'minitest/autorun'
+require 'psych'
module Psych
- class TestStruct < Test::Unit::TestCase
+ class TestStruct < MiniTest::Unit::TestCase
class StructSubclass < Struct.new(:foo)
def initialize foo, bar
super(foo)
diff --git a/test/yaml/test_array.rb b/test/yaml/test_array.rb
index 7e7318e..23434e5 100644
--- a/test/yaml/test_array.rb
+++ b/test/yaml/test_array.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestArray < Test::Unit::TestCase
+ class TestArray < MiniTest::Unit::TestCase
def setup
@list = [{ :a => 'b' }, 'foo']
end
diff --git a/test/yaml/test_boolean.rb b/test/yaml/test_boolean.rb
index 8113348..5edeb87 100644
--- a/test/yaml/test_boolean.rb
+++ b/test/yaml/test_boolean.rb
@@ -4,7 +4,7 @@ module YAML
###
# Test booleans from YAML spec:
# http://yaml.org/type/bool.html
- class TestBoolean < Test::Unit::TestCase
+ class TestBoolean < MiniTest::Unit::TestCase
%w{ yes Yes YES true True TRUE on On ON }.each do |truth|
define_method(:"test_#{truth}") do
assert_equal true, YAML.load("--- #{truth}")
diff --git a/test/yaml/test_class.rb b/test/yaml/test_class.rb
index effa852..7ad54a6 100644
--- a/test/yaml/test_class.rb
+++ b/test/yaml/test_class.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestClass < Test::Unit::TestCase
+ class TestClass < MiniTest::Unit::TestCase
def test_to_yaml
assert_raises(::TypeError) do
TestClass.to_yaml
diff --git a/test/yaml/test_exception.rb b/test/yaml/test_exception.rb
index f646008..da0e6b0 100644
--- a/test/yaml/test_exception.rb
+++ b/test/yaml/test_exception.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestException < Test::Unit::TestCase
+ class TestException < MiniTest::Unit::TestCase
class Wups < Exception
attr_reader :foo, :bar
def initialize *args
diff --git a/test/yaml/test_hash.rb b/test/yaml/test_hash.rb
index 16a9ee3..e585bbc 100644
--- a/test/yaml/test_hash.rb
+++ b/test/yaml/test_hash.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestHash < Test::Unit::TestCase
+ class TestHash < MiniTest::Unit::TestCase
def setup
@hash = { :a => 'b' }
end
diff --git a/test/yaml/test_null.rb b/test/yaml/test_null.rb
index 24c8ab1..e7d08df 100644
--- a/test/yaml/test_null.rb
+++ b/test/yaml/test_null.rb
@@ -4,7 +4,7 @@ module YAML
###
# Test null from YAML spec:
# http://yaml.org/type/null.html
- class TestNull < Test::Unit::TestCase
+ class TestNull < MiniTest::Unit::TestCase
def test_null_list
assert_equal [nil] * 5, YAML.load(<<-eoyml)
---
diff --git a/test/yaml/test_omap.rb b/test/yaml/test_omap.rb
index 8186f69..836c822 100644
--- a/test/yaml/test_omap.rb
+++ b/test/yaml/test_omap.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestOmap < Test::Unit::TestCase
+ class TestOmap < MiniTest::Unit::TestCase
def test_self_referential
map = YAML::Omap.new
map['foo'] = 'bar'
diff --git a/test/yaml/test_set.rb b/test/yaml/test_set.rb
index e62b6cd..5468d26 100644
--- a/test/yaml/test_set.rb
+++ b/test/yaml/test_set.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestSet < Test::Unit::TestCase
+ class TestSet < MiniTest::Unit::TestCase
def setup
@set = YAML::Set.new
@set['foo'] = 'bar'
diff --git a/test/yaml/test_string.rb b/test/yaml/test_string.rb
index 637d65b..0faf8d8 100644
--- a/test/yaml/test_string.rb
+++ b/test/yaml/test_string.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestString < Test::Unit::TestCase
+ class TestString < MiniTest::Unit::TestCase
def test_binary_string_null
string = "\x00"
yml = YAML.dump string
diff --git a/test/yaml/test_symbol.rb b/test/yaml/test_symbol.rb
index c4f77c4..57e1385 100644
--- a/test/yaml/test_symbol.rb
+++ b/test/yaml/test_symbol.rb
@@ -1,7 +1,7 @@
require 'helper'
module YAML
- class TestSymbol < Test::Unit::TestCase
+ class TestSymbol < MiniTest::Unit::TestCase
def test_to_yaml
assert_equal :a, YAML.load(:a.to_yaml)
end