[DRE-commits] [ruby-webmock] 01/03: port to minitest, remaining lines too
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Mon Apr 14 05:18:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-webmock.
commit f762a89ccbd6494807ed079449f13a5d5d7f675c
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Apr 14 10:42:49 2014 +0530
port to minitest, remaining lines too
---
debian/patches/remove-rubygems-port-to-minitest5.patch | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/debian/patches/remove-rubygems-port-to-minitest5.patch b/debian/patches/remove-rubygems-port-to-minitest5.patch
index cfd921c..33afbef 100644
--- a/debian/patches/remove-rubygems-port-to-minitest5.patch
+++ b/debian/patches/remove-rubygems-port-to-minitest5.patch
@@ -25,7 +25,7 @@ Last-Update: 2013-05-24
require 'webmock/minitest'
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
-@@ -1,7 +1,7 @@
+@@ -1,13 +1,13 @@
-require 'rubygems'
+# require 'rubygems'
@@ -35,7 +35,16 @@ Last-Update: 2013-05-24
+# $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'webmock/test_unit'
- require 'test/unit'
+-require 'test/unit'
++require 'minitest/autorun'
+
+-class Test::Unit::TestCase
+- AssertionFailedError = Test::Unit::AssertionFailedError rescue MiniTest::Assertion
++class Minitest::Test
++ AssertionFailedError = Minitest::Test::AssertionFailedError rescue MiniTest::Assertion
+ def assert_raise_with_message(e, message, &block)
+ e = assert_raises(e, &block)
+ if message.is_a?(Regexp)
--- a/spec/acceptance/net_http/real_net_http_spec.rb
+++ b/spec/acceptance/net_http/real_net_http_spec.rb
@@ -1,4 +1,4 @@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-webmock.git
More information about the Pkg-ruby-extras-commits
mailing list