Skip to content

Instantly share code, notes, and snippets.

@ChrisBr

ChrisBr/path.rb Secret

Created July 17, 2018 20:33
Show Gist options
  • Save ChrisBr/0d29bb29dabaead35b61c6b8328570aa to your computer and use it in GitHub Desktop.
Save ChrisBr/0d29bb29dabaead35b61c6b8328570aa to your computer and use it in GitHub Desktop.
Gem.clear_paths
old = ENV['GEM_PATH']
ENV['GEM_PATH'] = File.expand_path('../../test/jruby/gem.jar', __FILE__)
puts require('mygem')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment