зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Add a package attr_reader to Gem::Installer.
Add some basic specs for the package attr_reader. https://github.com/rubygems/rubygems/commit/68af2a0ee3
This commit is contained in:
Родитель
6be927ff4a
Коммит
8103d46a4d
|
@ -65,6 +65,11 @@ class Gem::Installer
|
|||
|
||||
attr_reader :options
|
||||
|
||||
##
|
||||
# The gem package instance.
|
||||
|
||||
attr_reader :package
|
||||
|
||||
@path_warning = false
|
||||
|
||||
@install_lock = Mutex.new
|
||||
|
|
|
@ -2054,6 +2054,16 @@ gem 'other', version
|
|||
assert_equal ['exe/executable'], default_spec.files
|
||||
end
|
||||
|
||||
def test_package_attribute
|
||||
spec = quick_gem 'c' do |spec|
|
||||
util_make_exec spec, '#!/usr/bin/ruby', 'exe'
|
||||
end
|
||||
|
||||
installer = util_installer(spec, @gemhome)
|
||||
assert_respond_to(installer, :package)
|
||||
assert_kind_of(Gem::Package, installer.package)
|
||||
end
|
||||
|
||||
def old_ruby_required(requirement)
|
||||
spec = util_spec 'old_ruby_required', '1' do |s|
|
||||
s.required_ruby_version = requirement
|
||||
|
|
Загрузка…
Ссылка в новой задаче