[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/94: gnu: ruby-markaby: Fix tests.
From: |
guix-commits |
Subject: |
27/94: gnu: ruby-markaby: Fix tests. |
Date: |
Mon, 3 Jul 2023 06:06:24 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 5db040386e9b15b3efbcd9f462cfa8c4f895e098
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Jun 27 11:17:27 2023 +0100
gnu: ruby-markaby: Fix tests.
* gnu/packages/ruby.scm (ruby-markaby)[arguments]: Update style and remove
some broken tests.
---
gnu/packages/ruby.scm | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 61fee5a4ff..c976c72b9e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4720,17 +4720,24 @@ another.")
"1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- ;; Run rspec manually without using the Rakefile, as the versions of
- ;; Rake and RSpec 2 are incompatible:
- ;;
- ;; NoMethodError: undefined method `last_comment'
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "rspec"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Run rspec manually without using the Rakefile, as the versions of
+ ;; Rake and RSpec 2 are incompatible:
+ ;;
+ ;; NoMethodError: undefined method `last_comment'
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ ;; Skip some broken tests, this should be redundant with the
+ ;; next release
+ (delete-file "spec/markaby/markaby_test_unit_spec.rb")
+ (substitute* "spec/markaby/markaby_spec.rb"
+ (("generated.should == str")
+ "# Test broken: generated.should == str"))
+
+ (when tests?
+ (invoke "rspec")))))))
(propagated-inputs
(list ruby-builder))
(native-inputs
- 58/94: gnu: ruby-bibtex-ruby: Remove ruby-byebug dependency., (continued)
- 58/94: gnu: ruby-bibtex-ruby: Remove ruby-byebug dependency., guix-commits, 2023/07/03
- 60/94: gnu: facter: Update to 4.4.1., guix-commits, 2023/07/03
- 74/94: gnu: ruby-net-scp: Fix build., guix-commits, 2023/07/03
- 80/94: gnu: Remove ruby-minitest-5.15., guix-commits, 2023/07/03
- 85/94: gnu: Add ruby-hoe-3., guix-commits, 2023/07/03
- 90/94: gnu: ruby-fast-gettext: Update to 2.3.0., guix-commits, 2023/07/03
- 19/94: gnu: ruby-test-construct: Update to 2.0.2., guix-commits, 2023/07/03
- 22/94: gnu: ruby-hoe: Update to 4.0.4., guix-commits, 2023/07/03
- 29/94: gnu: ruby-thor: Update to 1.2.2., guix-commits, 2023/07/03
- 30/94: gnu: ruby-minitest-focus: Update to 1.3.1., guix-commits, 2023/07/03
- 27/94: gnu: ruby-markaby: Fix tests.,
guix-commits <=
- 01/94: gnu: ruby: Switch from 2.7 to 3.1., guix-commits, 2023/07/03
- 15/94: gnu: ruby-introspection: Adjust inputs., guix-commits, 2023/07/03
- 50/94: gnu: ruby-bootsnap: Fix build., guix-commits, 2023/07/03
- 41/94: gnu: ruby-oedipus-lex: Update to 2.6.1., guix-commits, 2023/07/03
- 43/94: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/07/03
- 48/94: gnu: ruby-rdoc: Update to 6.5.0., guix-commits, 2023/07/03
- 36/94: gnu: Add ruby-http-accept., guix-commits, 2023/07/03
- 49/94: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/07/03
- 53/94: gnu: zsh-autosuggestions: Remove ruby-byebug dependency., guix-commits, 2023/07/03
- 57/94: gnu: ruby-wapiti: Update to 2.1.0., guix-commits, 2023/07/03