dev-ruby/actionview: avoid activerecord integration tests
authorHans de Graaff <graaff@gentoo.org>
Mon, 27 Apr 2020 07:07:09 +0000 (09:07 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 27 Apr 2020 07:15:50 +0000 (09:15 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/actionview/actionview-5.2.4.2.ebuild

index 76df6e724c6ef55ee14822ea5df89ca90fba6437..87622071e47293fe3c9d69d98943208d294fe67f 100644 (file)
@@ -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
 }