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

dev-ruby/activemodel/activemodel-5.1.6.ebuild

index a0b573ba9df597dcde4f60da8170c0a607a92889..bd145fbf2c536548bf0987fcd243a7835b66b260 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-USE_RUBY="ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24"
 
 RUBY_FAKEGEM_TASK_DOC=""
 RUBY_FAKEGEM_DOCDIR=""
@@ -40,5 +40,5 @@ ruby_add_bdepend "
 
 all_ruby_prepare() {
        # Set test environment to our hand.
-       sed -i -e '/load_paths/d' test/cases/helper.rb || die "Unable to remove load paths"
+       sed -i -e '/load_paths/d ; 1igem "activesupport", "~>5.1.6" ; gem "railties", "~>5.1.6"' test/cases/helper.rb || die "Unable to remove load paths"
 }