Blame SOURCES/rubygem-metaclass-0.0.4-Move-to-Minitest-5.patch

e1c42f
From cff40cbace639d3b66d7913d99e74e56f91905b8 Mon Sep 17 00:00:00 2001
e1c42f
From: Josef Stribny <jstribny@redhat.com>
e1c42f
Date: Mon, 19 Jan 2015 10:54:48 +0100
e1c42f
Subject: [PATCH] Move to Minitest 5
e1c42f
e1c42f
---
e1c42f
 metaclass.gemspec           | 4 +++-
e1c42f
 test/object_methods_test.rb | 6 +++---
e1c42f
 test/test_helper.rb         | 2 +-
e1c42f
 3 files changed, 7 insertions(+), 5 deletions(-)
e1c42f
e1c42f
diff --git a/metaclass.gemspec b/metaclass.gemspec
e1c42f
index 3208ff8..d84b516 100644
e1c42f
--- a/metaclass.gemspec
e1c42f
+++ b/metaclass.gemspec
e1c42f
@@ -17,4 +17,6 @@ Gem::Specification.new do |s|
e1c42f
   s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
e1c42f
   s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
e1c42f
   s.require_paths = ["lib"]
e1c42f
-end
e1c42f
\ No newline at end of file
e1c42f
+
e1c42f
+  s.add_development_dependency 'minitest'
e1c42f
+end
e1c42f
diff --git a/test/object_methods_test.rb b/test/object_methods_test.rb
e1c42f
index b4d9c2a..7fa7494 100644
e1c42f
--- a/test/object_methods_test.rb
e1c42f
+++ b/test/object_methods_test.rb
e1c42f
@@ -1,6 +1,6 @@
e1c42f
 require "test_helper"
e1c42f
 
e1c42f
-class ObjectMethodsTest < Test::Unit::TestCase
e1c42f
+class ObjectMethodsTest < Minitest::Test
e1c42f
 
e1c42f
   def setup
e1c42f
     @klass = Class.new
e1c42f
@@ -11,7 +11,7 @@ def test_define_method_on_only_one_instance_of_a_class
e1c42f
     assert_raises(NoMethodError) { instance.success? }
e1c42f
 
e1c42f
     instance.__metaclass__.class_eval { def success?; true; end }
e1c42f
-    assert_nothing_raised(NoMethodError) { assert instance.success? }
e1c42f
+    assert instance.success?
e1c42f
 
e1c42f
     another_instance = @klass.new
e1c42f
     assert_raises(NoMethodError) { another_instance.success? }
e1c42f
@@ -28,4 +28,4 @@ def test_metaclass_is_itself_a_class
e1c42f
     assert instance.__metaclass__.is_a?(Class)
e1c42f
   end
e1c42f
 
e1c42f
-end
e1c42f
\ No newline at end of file
e1c42f
+end
e1c42f
diff --git a/test/test_helper.rb b/test/test_helper.rb
e1c42f
index 1573fa8..3b403de 100644
e1c42f
--- a/test/test_helper.rb
e1c42f
+++ b/test/test_helper.rb
e1c42f
@@ -2,4 +2,4 @@
e1c42f
 require "bundler/setup"
e1c42f
 
e1c42f
 require "metaclass"
e1c42f
-require "test/unit"
e1c42f
+require "minitest/autorun"