Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -10,6 +10,12 @@
# mock load_plugins as it loads rubygems
def Minitest.load_plugins
end
# Work around a bug in ActiveSupport whereby it tries to pass an env hash with Symbol keys. This only
# works on JRuby 1.7. The following will allow the Symbol keys to coerce to Strings.
class Symbol
alias :to_str :to_s
end
bundler.rb: "module Bundler; def self.setup; end; end"
# mock method_source gem
method_source.rb: nil

2 comments on commit 9a4bf4f

@nirvdrum
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pitr-ch This seems to be the root cause of that popen issue you reported. It's a bug in ActiveSupport that's been fixed on Rails's master. The Rubinius code we pull in is doing the correct thing, which is to error out. This commit works around the failure case to allow the tests to progress further.

Sorry, something went wrong.

@pitr-ch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll try it.

Sorry, something went wrong.

Please sign in to comment.