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.
This commit is contained in:
Efraim Flashner 2021-08-22 13:41:32 +03:00
parent 576e82d34a
commit 0e55c4902b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -6739,8 +6739,11 @@ (define-public ruby-netrc
(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")