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.
This commit is contained in:
parent
0246bf5f80
commit
04920dca2a
1 changed files with 8 additions and 4 deletions
|
@ -1173,14 +1173,18 @@ structure. Supports custom object formatting via plugins.")
|
||||||
(("('|\")pandoc" _ quote)
|
(("('|\")pandoc" _ quote)
|
||||||
(string-append quote pandoc))
|
(string-append quote pandoc))
|
||||||
(("\\^pandoc")
|
(("\\^pandoc")
|
||||||
".*pandoc"))
|
".*pandoc")))))
|
||||||
#t)))
|
(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
|
(add-after 'extract-gemspec 'remove-Gemfile.lock
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file "Gemfile.lock")
|
(delete-file "Gemfile.lock")
|
||||||
(substitute* "pandoc-ruby.gemspec"
|
(substitute* "pandoc-ruby.gemspec"
|
||||||
(("Gemfile\\.lock") ""))
|
(("Gemfile\\.lock") "")))))))
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("ruby-mocha" ,ruby-mocha)))
|
`(("ruby-mocha" ,ruby-mocha)))
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Reference in a new issue