gnu: ruby-actionpack: Update to 7.0.4.3 and enable test suite.
* gnu/packages/rails.scm (ruby-actionpack): Update to 7.0.4.3. [source]: Use ruby-rails-monorepo. [arguments]: Delete #:tests? argument. Add #:phases argument. [native-inputs]: New field. [propagated-inputs]: Add ruby-rack-cache and ruby-rack-session.
This commit is contained in:
parent
087b0dcb7b
commit
cb837029a0
1 changed files with 81 additions and 25 deletions
|
@ -468,32 +468,88 @@ Ruby.")
|
||||||
|
|
||||||
(define-public ruby-actionpack
|
(define-public ruby-actionpack
|
||||||
(package
|
(package
|
||||||
(name "ruby-actionpack")
|
(name "ruby-actionpack")
|
||||||
(version "6.1.3")
|
(version %ruby-rails-version)
|
||||||
(source
|
(source ruby-rails-monorepo)
|
||||||
(origin
|
(build-system ruby-build-system)
|
||||||
(method url-fetch)
|
(arguments
|
||||||
(uri (rubygems-uri "actionpack" version))
|
(list
|
||||||
(sha256
|
#:phases
|
||||||
(base32
|
#~(modify-phases %standard-phases
|
||||||
"030yyaskzlic5cp4d9zbwwr3rhf4k6hsls44a7ihsfd6r8mlivq5"))))
|
(add-after 'extract-gemspec 'chdir
|
||||||
(build-system ruby-build-system)
|
(lambda _
|
||||||
(arguments
|
(chdir "actionpack")))
|
||||||
'(;; No included tests
|
(add-before 'check 'delete-problematic-tests
|
||||||
#:tests? #f))
|
(lambda _
|
||||||
(propagated-inputs
|
(let-syntax ((skip-tests
|
||||||
(list ruby-actionview
|
(syntax-rules ()
|
||||||
ruby-activesupport
|
((_ file test ...)
|
||||||
ruby-rack
|
(substitute* file
|
||||||
ruby-rack-test
|
;; ActiveSupport test case.
|
||||||
ruby-rails-dom-testing
|
(((string-append "test \"" test "\".*") all)
|
||||||
ruby-rails-html-sanitizer))
|
(string-append
|
||||||
(synopsis "Conventions for building and testing MVC web applications")
|
all " skip 'fails on guix'\n")) ...
|
||||||
(description
|
;; MiniTest test case.
|
||||||
"ActionPack provides conventions for building and testing MVC web
|
(((string-append "def " test ".*") all)
|
||||||
|
(string-append
|
||||||
|
all " skip('fails on guix')\n")) ...)))))
|
||||||
|
|
||||||
|
(with-directory-excursion "test"
|
||||||
|
(for-each delete-file
|
||||||
|
;; These tests depend on rails, which depends on
|
||||||
|
;; this package.
|
||||||
|
'("dispatch/mount_test.rb"
|
||||||
|
"dispatch/prefix_generation_test.rb"
|
||||||
|
"dispatch/routing_assertions_test.rb"
|
||||||
|
"dispatch/routing/inspector_test.rb"
|
||||||
|
"controller/live_stream_test.rb"
|
||||||
|
"controller/integration_test.rb"
|
||||||
|
"controller/test_case_test.rb"))
|
||||||
|
|
||||||
|
;; The following test failures have been reported upstream
|
||||||
|
;; (see: https://github.com/rails/rails/issues/47615).
|
||||||
|
(skip-tests "controller/new_base/render_streaming_test.rb"
|
||||||
|
;; These tests fail due to white space
|
||||||
|
;; characters in the compared strings.
|
||||||
|
"rendering with streaming no layout"
|
||||||
|
"rendering with streaming enabled at the \
|
||||||
|
class level"
|
||||||
|
"rendering with streaming given to render"
|
||||||
|
"rendering with layout exception"
|
||||||
|
"rendering with template exception"
|
||||||
|
"rendering with streaming do not override \
|
||||||
|
explicit cache control given to render")
|
||||||
|
|
||||||
|
(skip-tests "dispatch/system_testing/driver_test.rb"
|
||||||
|
;; These tests require Firefox.
|
||||||
|
"define extra capabilities using headless_firefox"
|
||||||
|
"define extra capabilities using firefox")
|
||||||
|
|
||||||
|
(skip-tests "dispatch/session/cache_store_test.rb"
|
||||||
|
;; This test fails with: "NoMethodError:
|
||||||
|
;; undefined method `hash_for' for
|
||||||
|
;; #<Rack::Test::CookieJar:0x0000000003572170>".
|
||||||
|
"test_getting_session_value_after_session_reset"))))))))
|
||||||
|
(native-inputs
|
||||||
|
(list ruby-activemodel
|
||||||
|
ruby-capybara
|
||||||
|
ruby-selenium-webdriver
|
||||||
|
ruby-zeitwerk))
|
||||||
|
(propagated-inputs
|
||||||
|
(list ruby-actionview
|
||||||
|
ruby-activesupport
|
||||||
|
ruby-rack
|
||||||
|
ruby-rack-cache
|
||||||
|
ruby-rack-session
|
||||||
|
ruby-rack-test
|
||||||
|
ruby-rails-dom-testing
|
||||||
|
ruby-rails-html-sanitizer))
|
||||||
|
(synopsis "Conventions for building and testing MVC web applications")
|
||||||
|
(description
|
||||||
|
"ActionPack provides conventions for building and testing MVC web
|
||||||
applications. These work with any Rack-compatible server.")
|
applications. These work with any Rack-compatible server.")
|
||||||
(home-page "https://rubyonrails.org/")
|
(home-page "https://rubyonrails.org/")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public ruby-actioncable
|
(define-public ruby-actioncable
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue