class Bundler::RubygemsIntegration

def stub_rubygems(specs)

def stub_rubygems(specs)
  Gem::Specification.all = specs
  Gem.post_reset do
    Gem::Specification.all = specs
  end
  redefine_method((class << Gem; self; end), :finish_resolve) do |*|
    []
  end
end