diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem.rb | 1 | ||||
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb index ac40d97c15..a320d54884 100644 --- a/test/rubygems/test_gem.rb +++ b/test/rubygems/test_gem.rb @@ -1,6 +1,7 @@ # coding: US-ASCII require 'rubygems/test_case' require 'rubygems' +require 'rubygems/command' require 'rubygems/installer' require 'pathname' require 'tmpdir' diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 9f7c354334..8efae025e7 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1210,6 +1210,15 @@ dependencies: [] FileUtils.chmod 0755, @gemhome end + def test_build_extensions_none + refute_path_exists @a1.extension_install_dir, 'sanity check' + assert_empty @a1.extensions, 'sanity check' + + @a1.build_extensions + + refute_path_exists @a1.extension_install_dir + end + def test_contains_requirable_file_eh code_rb = File.join @a1.gem_dir, 'lib', 'code.rb' FileUtils.mkdir_p File.dirname code_rb |