[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: ruby-pandoc-ruby: Adjust test suite.
From: |
guix-commits |
Subject: |
01/06: gnu: ruby-pandoc-ruby: Adjust test suite. |
Date: |
Sun, 12 Sep 2021 07:07:29 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit 04920dca2aa128b440d4db26cc14b7961416767c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Sep 12 12:20:31 2021 +0300
gnu: ruby-pandoc-ruby: Adjust test suite.
* gnu/packages/ruby.scm (ruby-pandoc-ruby)[arguments]: Adjust test suite
to change in ruby behavior and the test suite.
---
gnu/packages/ruby.scm | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index cbd16e2..b207c04 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1173,14 +1173,18 @@ structure. Supports custom object formatting via
plugins.")
(("('|\")pandoc" _ quote)
(string-append quote pandoc))
(("\\^pandoc")
- ".*pandoc"))
- #t)))
+ ".*pandoc")))))
+ (add-after 'unpack 'adjust-tests
+ ;; The tests expect filenames with spaces. Because they don't have
+ ;; spaces the quotes around the output are dropped automatically.
+ (lambda _
+ (substitute* "test/test_pandoc_ruby.rb"
+ (("\\\\\"#\\{file\\.path\\}\\\\\"") "#{file.path}"))))
(add-after 'extract-gemspec 'remove-Gemfile.lock
(lambda _
(delete-file "Gemfile.lock")
(substitute* "pandoc-ruby.gemspec"
- (("Gemfile\\.lock") ""))
- #t)))))
+ (("Gemfile\\.lock") "")))))))
(native-inputs
`(("ruby-mocha" ,ruby-mocha)))
(inputs
- branch core-updates-frozen updated (0246bf5 -> 66cf685), guix-commits, 2021/09/12
- 03/06: gnu: ruby-json-pure: Update to 2.3.1., guix-commits, 2021/09/12
- 06/06: gnu: ruby-tins: Update to 1.29.1., guix-commits, 2021/09/12
- 05/06: gnu: Add ruby-sync., guix-commits, 2021/09/12
- 04/06: gnu: ruby-multi-json: Update to 1.15.0., guix-commits, 2021/09/12
- 02/06: gnu: ruby-mocha: Update to 1.13.0., guix-commits, 2021/09/12
- 01/06: gnu: ruby-pandoc-ruby: Adjust test suite.,
guix-commits <=