dev-ruby/actionmailer: fix tests with rails 5.2 present
authorHans de Graaff <graaff@gentoo.org>
Sat, 21 Jul 2018 06:05:30 +0000 (08:05 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sat, 21 Jul 2018 06:05:30 +0000 (08:05 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-ruby/actionmailer/actionmailer-5.1.6.ebuild

index eb97299a0c6f357bff84f8515ee6ec688f78e967..3715e6a043461e681ec7faf33b1c30bc71356600 100644 (file)
@@ -38,7 +38,7 @@ ruby_add_bdepend "test? (
 all_ruby_prepare() {
        # Set test environment to our hand.
        rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
-       sed -i -e '/\/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
+       sed -i -e '/\/load_paths/d ; 1igem "railties", "~>5.1.0"; gem "activejob", "~>5.1.0"' test/abstract_unit.rb || die "Unable to remove load paths"
 
        # Avoid a test failing only on attachment ordering, since this is a
        # security release.