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:
parent
576e82d34a
commit
0e55c4902b
1 changed files with 5 additions and 2 deletions
|
@ -6739,8 +6739,11 @@ (define-public ruby-netrc
|
||||||
(lambda _
|
(lambda _
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(invoke "ruby" "-Itest" file))
|
(invoke "ruby" "-Itest" file))
|
||||||
(find-files "./test" "test_.*\\.rb"))
|
(find-files "./test" "test_.*\\.rb"))))
|
||||||
#t)))))
|
(add-before 'check 'patch-tests-for-newer-ruby
|
||||||
|
(lambda _
|
||||||
|
(substitute* "test/test_netrc.rb"
|
||||||
|
(("Dir.pwd, '.netrc'") "Netrc.home_path, '.netrc'")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("ruby-minitest" ,ruby-minitest)))
|
`(("ruby-minitest" ,ruby-minitest)))
|
||||||
(synopsis "Library to read and update netrc files")
|
(synopsis "Library to read and update netrc files")
|
||||||
|
|
Loading…
Reference in a new issue