Package: ruby-mocha Version: 1.7.0-1 Severity: wishlist I open this bug to track that there's a new upstream version of ruby-mocha available (2.0.2). This is a new branch with some breaking changes compared to mocha 1.x. For example, the removal of 'mocha/setup' breaks many packages.
Examples of broken packages: feed2imap ruby-actionpack-action-caching ruby-airbrussh ruby-beneater ruby-bootsnap ruby-bourne etc. Here is a diff of the required packaging changes when trying mocha 2.0.2. diff --git a/debian/changelog b/debian/changelog index ad1ee6c..38aed88 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +ruby-mocha (2.0.2-1) UNRELEASED; urgency=medium + + * New upstream version 2.0.2 + * Refresh patches + * load test/unit before starting tests + + -- Lucas Nussbaum <lu...@debian.org> Thu, 05 Jan 2023 21:08:04 +0100 + ruby-mocha (1.16.1-1) unstable; urgency=medium * Team upload. diff --git a/debian/patches/deactivate_failing_tests.patch b/debian/patches/deactivate_failing_tests.patch index fccd080..67fa9fd 100644 --- a/debian/patches/deactivate_failing_tests.patch +++ b/debian/patches/deactivate_failing_tests.patch @@ -6,20 +6,9 @@ Author: Cédric Boutillier <bou...@debian.org> Forwarded: not-needed Last-Update: 2018-08-19 ---- a/test/acceptance/stubba_test_result_test.rb -+++ b/test/acceptance/stubba_test_result_test.rb -@@ -59,7 +59,7 @@ class StubbaTestResultTest < Mocha::Test - end - - # rubocop:disable Style/Semicolon -- def test_should_display_backtrace_indicating_line_number_where_failing_assertion_was_called -+ def est_should_display_backtrace_indicating_line_number_where_failing_assertion_was_called - execution_point = nil - test_result = run_as_test do - execution_point = ExecutionPoint.current; flunk --- a/test/acceptance/mocha_test_result_test.rb +++ b/test/acceptance/mocha_test_result_test.rb -@@ -71,7 +71,7 @@ class MochaTestResultTest < Mocha::TestC +@@ -70,7 +70,7 @@ class MochaTestResultTest < Mocha::TestC assert_equal execution_point, ExecutionPoint.new(test_result.failures[0].location) end diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake index 63f3fd6..28b5d18 100644 --- a/debian/ruby-tests.rake +++ b/debian/ruby-tests.rake @@ -2,5 +2,6 @@ require 'gem2deb/rake/testtask' Gem2Deb::Rake::TestTask.new do |t| t.libs = ['test'] + t.ruby_opts = ["-rtest/unit"] t.test_files = FileList['test/**/*_test.rb'] + FileList['test/**/test_*.rb'] end