From: Hans de Graaff Date: Mon, 27 Apr 2020 07:07:09 +0000 (+0200) Subject: dev-ruby/actionview: avoid activerecord integration tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31aff268aa18182296a45dc1b8a2644b812bfed1;p=gentoo.git dev-ruby/actionview: avoid activerecord integration tests Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff --- diff --git a/dev-ruby/actionview/actionview-5.2.4.2.ebuild b/dev-ruby/actionview/actionview-5.2.4.2.ebuild index 76df6e724c6e..87622071e472 100644 --- a/dev-ruby/actionview/actionview-5.2.4.2.ebuild +++ b/dev-ruby/actionview/actionview-5.2.4.2.ebuild @@ -49,12 +49,13 @@ all_ruby_prepare() { -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die rm ../Gemfile.lock || die - # Avoid tests failing due to missing logger setup in activerecord, - # most likely related to test environment setup. - rm -f test/activerecord/render_partial_with_record_identification_test.rb || die - - sed -e '1igem "actionpack", "~> 5.2.0"' \ - -e '1igem "activemodel", "~> 5.2.0"' \ - -e '1igem "railties", "~> 5.2.0"' \ + # Avoid activerecord integration tests because they are very sensitive to the specifics + # of the environment. + sed -i -e 's/, "test:integration:active_record"//' Rakefile || die + + sed -e '2igem "actionpack", "~> 5.2.0"' \ + -e '2igem "activemodel", "~> 5.2.0"' \ + -e '2igem "railties", "~> 5.2.0"' \ + -e '/active_record/ s:^:#:' \ -i test/abstract_unit.rb || die }