[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 202/223] gnu: Add ruby-rspec-block-is-expected.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 202/223] gnu: Add ruby-rspec-block-is-expected. |
Date: |
Mon, 20 Mar 2023 13:29:12 -0400 |
* gnu/packages/ruby.scm (ruby-rspec-block-is-expected): New variable.
---
gnu/packages/ruby.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b04eef72da..1053dcd758 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -929,6 +929,39 @@ (define-public ruby-rspec-mocks-2
(propagated-inputs
(list ruby-diff-lcs))))
+(define-public ruby-rspec-block-is-expected
+ (package
+ (name "ruby-rspec-block-is-expected")
+ (version "1.0.2")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/pboling/rspec-block_is_expected")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1w8mj00k8am24yw7lbhg616m111p7h7bbfxaw7np4i7wnlwzm8fk"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask.new") ""))
+ ;; Contains extraneous requirements not actually
+ ;; needed for the test suite.
+ (delete-file "Gemfile"))))))
+ (native-inputs (list ruby-rspec-pending-for ruby-rspec-expectations))
+ (propagated-inputs (list ruby-rspec-core))
+ (synopsis "Simplify testing of blocks in RSpec")
+ (description "This RSpec plugin allows you to use @code{block_is_expected}
+similarly to how you would use @code{is_expected} if a block was wrapping the
+subject.")
+ (home-page "https://github.com/pboling/rspec-block_is_expected")
+ (license license:expat)))
+
(define-public ruby-rspec-pending-for
(package
(name "ruby-rspec-pending-for")
--
2.39.1
- [bug#62196] [PATCH 188/223] gnu: ruby-liquid: Update to 4.0.3., (continued)
- [bug#62196] [PATCH 188/223] gnu: ruby-liquid: Update to 4.0.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 193/223] gnu: ruby-shoulda: Update to 4.0.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 132/223] gnu: bundler: Update to 2.4.8., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 180/223] gnu: ruby-braintree: Update to 4.10.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 197/223] gnu: jekyll: Update to 4.3.2 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 111/223] gnu: ruby-bandwidth-iris: Fix indentation., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 109/223] gnu: Add ruby-fileutils., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 110/223] gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 113/223] gnu: ruby-octokit: Enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 126/223] gnu: Add ruby-bake., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 202/223] gnu: Add ruby-rspec-block-is-expected.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 204/223] gnu: ruby-hashie: Update to 5.0.0 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 208/223] gnu: ruby-omniauth-oauth2: Update to 1.8.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 207/223] gnu: ruby-omniauth: Update to 2.1.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 215/223] gnu: Add ruby-ammeter., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 216/223] gnu: ruby-autoprefixer-rails: Update to 10.4.13.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 223/223] gnu: ruby-net-scp: Update to 4.0.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 214/223] gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 218/223] gnu: ruby-coveralls: Propagate ruby-simplecov and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 210/223] gnu: ruby-single-cov: Update to 1.9.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 212/223] gnu: Add ruby-sassc-rails., Maxim Cournoyer, 2023/03/20