diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-08-22 13:41:32 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-08-22 14:08:53 +0300 |
commit | 0e55c4902b198c3260078001992ce013d2e18143 (patch) | |
tree | 1a26be08635af072da38cc8dc273d98482301e8a /gnu | |
parent | 576e82d34a80f6804cecd7a54a2b3f24731e3a41 (diff) |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/ruby.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ff2a4f731b..cbd16e26e5 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") |