mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add ruby-rspec-given.
* gnu/packages/ruby.scm (ruby-rspec-given): New variable.
This commit is contained in:
parent
906b9a141a
commit
9c1715581f
1 changed files with 49 additions and 0 deletions
|
@ -673,6 +673,55 @@ when defining specifications.")
|
||||||
(home-page "https://github.com/rspec-given/rspec-given")
|
(home-page "https://github.com/rspec-given/rspec-given")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public ruby-rspec-given
|
||||||
|
(package
|
||||||
|
(name "ruby-rspec-given")
|
||||||
|
(version "3.8.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (rubygems-uri "rspec-given" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
|
||||||
|
(build-system ruby-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:test-target "rs"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-rakefile
|
||||||
|
(lambda _
|
||||||
|
(substitute* '("Rakefile" "rakelib/gemspec.rake")
|
||||||
|
(("require '\\./lib/given/.*") "")
|
||||||
|
(("Given::VERSION") (format #f "~s" ,version))
|
||||||
|
;; Fix the error: "cannot load such file -- example_helper"
|
||||||
|
(("sh \"rspec")
|
||||||
|
"sh \"rspec -Ilib:examples"))
|
||||||
|
#t))
|
||||||
|
(add-after 'extract-gemspec 'delete-failing-tests
|
||||||
|
;; See: https://github.com/jimweirich/rspec-given/issues/57.
|
||||||
|
(lambda _
|
||||||
|
(substitute* ".gemspec"
|
||||||
|
(("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
|
||||||
|
"")
|
||||||
|
(("\"examples/integration/failing_messages_spec.rb\".freeze, ")
|
||||||
|
""))
|
||||||
|
(delete-file "spec/lib/given/natural_assertion_spec.rb")
|
||||||
|
(delete-file "examples/integration/failing_messages_spec.rb")
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("ruby-rspec" ,ruby-rspec)
|
||||||
|
("ruby-minitest" ,ruby-minitest)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("ruby-given-core" ,ruby-given-core)
|
||||||
|
("ruby-rspec" ,ruby-rspec)))
|
||||||
|
(synopsis "Given/When/Then for RSpec and Minitest")
|
||||||
|
(description "Given is an RSpec extension that allows the use of
|
||||||
|
Given/When/Then terminology when defining specifications, in a way similar to
|
||||||
|
the Cucumber Gherkin language.")
|
||||||
|
(home-page "https://github.com/rspec-given/rspec-given")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public ruby-rspec-its
|
(define-public ruby-rspec-its
|
||||||
(package
|
(package
|
||||||
(name "ruby-rspec-its")
|
(name "ruby-rspec-its")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue