gnu: ruby-prawn-svg: Fix build.
The test suite fails two tests when using a newer rspec version. * gnu/packages/ruby.scm (ruby-prawn-svg) [arguments]: Delete the interface_spec.rb test suite in the check phase.master
parent
0ef4d1af33
commit
602635d373
|
@ -1529,15 +1529,19 @@ Style Sheets (CSS) rule sets in Ruby.")
|
||||||
"0mbxzw7r7hv43db9422flc24ib9d8bdy1nasbni2h998jc5a5lb6"))))
|
"0mbxzw7r7hv43db9422flc24ib9d8bdy1nasbni2h998jc5a5lb6"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
(list #:phases
|
||||||
(add-after 'unpack 'do-not-use-bundler
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'do-not-use-bundler
|
||||||
(substitute* "spec/spec_helper.rb"
|
(lambda _
|
||||||
((".*[Bb]undler.*") ""))))
|
(substitute* "spec/spec_helper.rb"
|
||||||
(replace 'check
|
((".*[Bb]undler.*") ""))))
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(replace 'check
|
||||||
(when tests?
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "rspec" "-Ilib" "-rprawn-svg")))))))
|
(when tests?
|
||||||
|
;; This test fails due to the recent rspec 3.12 used
|
||||||
|
;; (see: https://github.com/mogest/prawn-svg/issues/151).
|
||||||
|
(delete-file "spec/prawn/svg/interface_spec.rb")
|
||||||
|
(invoke "rspec" "-Ilib" "-rprawn-svg")))))))
|
||||||
(native-inputs (list ruby-rspec))
|
(native-inputs (list ruby-rspec))
|
||||||
(propagated-inputs (list ruby-css-parser ruby-prawn))
|
(propagated-inputs (list ruby-css-parser ruby-prawn))
|
||||||
(synopsis "SVG renderer for the Prawn PDF library")
|
(synopsis "SVG renderer for the Prawn PDF library")
|
||||||
|
|
Reference in New Issue