From 31aff268aa18182296a45dc1b8a2644b812bfed1 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 27 Apr 2020 09:07:09 +0200 Subject: [PATCH] dev-ruby/actionview: avoid activerecord integration tests Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff --- dev-ruby/actionview/actionview-5.2.4.2.ebuild | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 } -- 2.26.2