aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-09-29 11:17:02 +0100
committerChristopher Baines <mail@cbaines.net>2018-10-05 21:25:41 +0100
commit39ecb977d3e097ffe9c46390090bd197581ac072 (patch)
tree05ee67d2a91368351de2f919dd23a70a994b4e3e /gnu/packages
parent0b060e3486afdefdf5a5f474518b2a6bfae405d9 (diff)
downloadguix-39ecb977d3e097ffe9c46390090bd197581ac072.tar
guix-39ecb977d3e097ffe9c46390090bd197581ac072.tar.gz
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ruby.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b216f3f48b..c039df1559 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2914,6 +2914,11 @@ Ruby's large and slower test/unit.")
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'fix-test
+ (lambda -
+ (substitute* "tests/hsl_triple_test.rb"
+ (("0\\\\\\.0%")
+ "0\\.?0?%"))))
(replace 'build
(lambda _
(invoke "gem" "build" "term-ansicolor.gemspec"))))))