sharlatan pushed a commit to branch ruby-team
in repository guix.

commit 360fe5753d5da565d73258539f1cf506ab2b46e3
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Jan 31 09:20:04 2025 +0100

    gnu: ruby-rubocop-rspec: Fix tests.
    
    * gnu/packages/ruby.scm (ruby-rubocop-rspec):
    [arguments]: Inherit from ruby-rubocop-rspec-minimal.
    [propagated-inputs]: Add ruby-rubocop-factory-bot.
    
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/ruby.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 20a8b32097..2754962785 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2095,7 +2095,11 @@ enforcing & linting tool.")
 (define-public ruby-rubocop-rspec
   (package
     (inherit ruby-rubocop-rspec-minimal)
-    (arguments '(#:test-target "spec"))
+    (arguments
+     (substitute-keyword-arguments
+         (package-arguments ruby-rubocop-rspec-minimal)
+       ((#:tests? _ #f) #t)
+       ((#:test-target _ "test") "spec")))
     (native-inputs
      (list ruby-bump
            ruby-rack
@@ -2107,7 +2111,8 @@ enforcing & linting tool.")
     (propagated-inputs
      (list ruby-rubocop
            ruby-rubocop-ast
-           ruby-rubocop-capybara))))
+           ruby-rubocop-capybara
+           ruby-rubocop-factory-bot))))
 
 (define-public ruby-rubocop-packaging
   (package

Reply via email to