commit:     7439b1fcf8af8ebaebb8b7bfa54652855621f3dc
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 18 05:51:48 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Jul 18 06:48:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7439b1fc

dev-ruby/sprockets-rails: fix tests with rack 2.0 installed

Package-Manager: portage-2.2.28

 dev-ruby/sprockets-rails/sprockets-rails-3.0.4.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-ruby/sprockets-rails/sprockets-rails-3.0.4.ebuild 
b/dev-ruby/sprockets-rails/sprockets-rails-3.0.4.ebuild
index 37ceaa2..b152f40 100644
--- a/dev-ruby/sprockets-rails/sprockets-rails-3.0.4.ebuild
+++ b/dev-ruby/sprockets-rails/sprockets-rails-3.0.4.ebuild
@@ -32,3 +32,8 @@ ruby_add_bdepend "
                >=dev-ruby/railties-4
                dev-ruby/test-unit:2
        )"
+
+all_ruby_prepare() {
+       # Help load correct rack version consistently
+       sed -i -e "3irequire 'action_controller'" test/test_helper.rb || die
+}

Reply via email to