mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-term-ansicolor: Fix test for Ruby 2.5.
* gnu/packages/ruby.scm (ruby-term-ansicolor)[arguments]: Add new fix-test phase to fix a test that fails under Ruby 2.5.
This commit is contained in:
parent
0b060e3486
commit
39ecb977d3
1 changed files with 5 additions and 0 deletions
|
@ -2914,6 +2914,11 @@ Ruby's large and slower test/unit.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-test
|
||||||
|
(lambda -
|
||||||
|
(substitute* "tests/hsl_triple_test.rb"
|
||||||
|
(("0\\\\\\.0%")
|
||||||
|
"0\\.?0?%"))))
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "gem" "build" "term-ansicolor.gemspec"))))))
|
(invoke "gem" "build" "term-ansicolor.gemspec"))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue