method

stub_rubygems

ruby latest stable - Class: Bundler::RubygemsIntegration::Future

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

stub_rubygems(specs)
public

No documentation available.

# File lib/bundler/rubygems_integration.rb, line 727
      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