guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/05: gnu: ruby-netrc: Fix test suite.


From: guix-commits
Subject: 02/05: gnu: ruby-netrc: Fix test suite.
Date: Sun, 22 Aug 2021 07:11:45 -0400 (EDT)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 0e55c4902b198c3260078001992ce013d2e18143
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Aug 22 13:41:32 2021 +0300

    gnu: ruby-netrc: Fix test suite.
    
    * gnu/packages/ruby.scm (ruby-netrc)[arguments]: Add phase to adjust the
    test suite for the newer ruby version.
---
 gnu/packages/ruby.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index ff2a4f7..cbd16e2 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6739,8 +6739,11 @@ other things and it comes with a command line 
interface.")
            (lambda _
              (for-each (lambda (file)
                          (invoke "ruby" "-Itest" file))
-                       (find-files "./test" "test_.*\\.rb"))
-             #t)))))
+                       (find-files "./test" "test_.*\\.rb"))))
+         (add-before 'check 'patch-tests-for-newer-ruby
+           (lambda _
+             (substitute* "test/test_netrc.rb"
+               (("Dir.pwd, '.netrc'") "Netrc.home_path, '.netrc'")))))))
     (native-inputs
      `(("ruby-minitest" ,ruby-minitest)))
     (synopsis "Library to read and update netrc files")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]