guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#32870] [PATCH 3/6] gnu: ruby-term-ansicolor: Fix test for Ruby 2.5.


From: Christopher Baines
Subject: [bug#32870] [PATCH 3/6] gnu: ruby-term-ansicolor: Fix test for Ruby 2.5.
Date: Sat, 29 Sep 2018 11:44:59 +0100

* gnu/packages/ruby.scm (ruby-term-ansicolor)[arguments]: Add new fix-test
phase to fix a test that fails under Ruby 2.5.
---
 gnu/packages/ruby.scm | 5 +++++
 1 file changed, 5 insertions(+)

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"))))))
-- 
2.18.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]