[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
83/94: gnu: ruby-minitest-4: Fix build.
From: |
guix-commits |
Subject: |
83/94: gnu: ruby-minitest-4: Fix build. |
Date: |
Mon, 3 Jul 2023 06:06:38 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 94a084c9d0b92289b130431ad0490151767e68f9
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Jul 1 09:34:40 2023 +0100
gnu: ruby-minitest-4: Fix build.
* gnu/packages/ruby.scm (ruby-minitest-4)[arguments]: Patch a failing test
and
update style.
[native-inputs]: Add ruby-minitest.
---
gnu/packages/ruby.scm | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 68db28eb17..137879bbc4 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5424,17 +5424,26 @@ facilities supporting TDD, BDD, mocking, and
benchmarking.")
(base32
"03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-unsupported-method
- (lambda _
- (substitute* "Rakefile"
- (("self\\.rubyforge_name = .*") ""))))
- (add-after 'build 'exclude-failing-tests
- (lambda _
- ;; Some tests are failing on Ruby 2.4 due to the deprecation of
- ;; Fixnum.
- (delete-file "test/minitest/test_minitest_spec.rb"))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-unsupported-method
+ (lambda _
+ (substitute* "Rakefile"
+ (("self\\.rubyforge_name = .*") ""))))
+ (add-after 'build 'patch-tests
+ (lambda _
+ ;; test_no_method_error_on_unexpected_methods
+ ;; This test fails due to some extra information in the message
+ (substitute* "test/minitest/test_minitest_mock.rb"
+ (("assert_equal expected, e.message")
+ "assert_equal expected, e.message.lines.first.strip"))
+ ;; Some tests are failing on Ruby 2.4 due to the deprecation of
+ ;; Fixnum.
+ (delete-file "test/minitest/test_minitest_spec.rb"))))))
+ (native-inputs
+ (list ruby-minitest
+ ruby-hoe))))
(define-public ruby-minitest-around
(package
- 41/94: gnu: ruby-oedipus-lex: Update to 2.6.1., (continued)
- 41/94: gnu: ruby-oedipus-lex: Update to 2.6.1., guix-commits, 2023/07/03
- 43/94: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/07/03
- 48/94: gnu: ruby-rdoc: Update to 6.5.0., guix-commits, 2023/07/03
- 36/94: gnu: Add ruby-http-accept., guix-commits, 2023/07/03
- 49/94: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/07/03
- 53/94: gnu: zsh-autosuggestions: Remove ruby-byebug dependency., guix-commits, 2023/07/03
- 57/94: gnu: ruby-wapiti: Update to 2.1.0., guix-commits, 2023/07/03
- 70/94: gnu: ruby-spy: Remove ruby-pry-byebug input., guix-commits, 2023/07/03
- 77/94: gnu: ruby-text-hyphen: Update to 1.5.0., guix-commits, 2023/07/03
- 82/94: gnu: ruby-stackprof: Always skip the GC test., guix-commits, 2023/07/03
- 83/94: gnu: ruby-minitest-4: Fix build.,
guix-commits <=
- 91/94: gnu: ruby-minitest-tu-shim: Fix build., guix-commits, 2023/07/03
- 93/94: gnu: ruby-version-gem: Update to 1.1.3., guix-commits, 2023/07/03
- 23/94: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/07/03
- 21/94: gnu: ruby-stackprof: Update to 0.2.25., guix-commits, 2023/07/03
- 51/94: gnu: ruby-marcel: Fix build., guix-commits, 2023/07/03
- 37/94: gnu: Add ruby-http-accept-1., guix-commits, 2023/07/03
- 44/94: gnu: ruby-cucumber: Fix build., guix-commits, 2023/07/03
- 39/94: gnu: ruby-hoe: Fix build., guix-commits, 2023/07/03
- 45/94: gnu: ruby-puma: Update to 6.3.0., guix-commits, 2023/07/03
- 52/94: gnu: ruby-railties: Fix build., guix-commits, 2023/07/03