aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_ext_ext_conf_builder.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-01 21:50:14 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-01 21:50:14 +0000
commiteffdbf5936cc090a618e13c8f9a1b5412ebab2fa (patch)
treec8410a18cbbe7ad013470fc06fef0c75ce0fd230 /test/rubygems/test_gem_ext_ext_conf_builder.rb
parent9c4ef4b191a1e6b9abdbb21c7c709d1d0f2397e6 (diff)
downloadruby-effdbf5936cc090a618e13c8f9a1b5412ebab2fa.tar.gz
* lib/rubygems: Update to RubyGems HEAD(c202db2).
this version contains many enhancements see http://git.io/vtNwF * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_ext_ext_conf_builder.rb')
-rw-r--r--test/rubygems/test_gem_ext_ext_conf_builder.rb40
1 files changed, 22 insertions, 18 deletions
diff --git a/test/rubygems/test_gem_ext_ext_conf_builder.rb b/test/rubygems/test_gem_ext_ext_conf_builder.rb
index f2f467e871..908dbdeb8c 100644
--- a/test/rubygems/test_gem_ext_ext_conf_builder.rb
+++ b/test/rubygems/test_gem_ext_ext_conf_builder.rb
@@ -33,11 +33,13 @@ class TestGemExtExtConfBuilder < Gem::TestCase
assert_same result, output
end
- assert_match(/^#{Gem.ruby}.* extconf.rb/, output[0])
- assert_equal "creating Makefile\n", output[1]
- assert_contains_make_command 'clean', output[2]
- assert_contains_make_command '', output[4]
- assert_contains_make_command 'install', output[6]
+ assert_match(/^current directory:/, output[0])
+ assert_match(/^#{Gem.ruby}.* extconf.rb/, output[1])
+ assert_equal "creating Makefile\n", output[2]
+ assert_match(/^current directory:/, output[3])
+ assert_contains_make_command 'clean', output[4]
+ assert_contains_make_command '', output[7]
+ assert_contains_make_command 'install', output[10]
assert_empty Dir.glob(File.join(@ext, 'siteconf*.rb'))
end
@@ -54,10 +56,10 @@ class TestGemExtExtConfBuilder < Gem::TestCase
Gem::Ext::ExtConfBuilder.build 'extconf.rb', nil, @dest_path, output
end
- assert_equal "creating Makefile\n", output[1]
- assert_contains_make_command 'clean', output[2]
- assert_contains_make_command '', output[4]
- assert_contains_make_command 'install', output[6]
+ assert_equal "creating Makefile\n", output[2]
+ assert_contains_make_command 'clean', output[4]
+ assert_contains_make_command '', output[7]
+ assert_contains_make_command 'install', output[10]
end
end
@@ -78,8 +80,8 @@ class TestGemExtExtConfBuilder < Gem::TestCase
end
end
- assert_equal "creating Makefile\n", output[1]
- assert_contains_make_command 'clean', output[2]
+ assert_equal "creating Makefile\n", output[2]
+ assert_contains_make_command 'clean', output[4]
end
ensure
ENV['make'] = env_make
@@ -106,7 +108,9 @@ class TestGemExtExtConfBuilder < Gem::TestCase
assert_equal 'extconf failed, exit code 1', error.message
- assert_match(/^#{Gem.ruby}.* extconf.rb/, output[0])
+ assert_match(/^#{Gem.ruby}.* extconf.rb/, output[1])
+ assert_match(File.join(@dest_path, 'mkmf.log'), output[4])
+
assert_path_exists File.join @dest_path, 'mkmf.log'
end
@@ -147,9 +151,9 @@ end
Gem::Ext::ExtConfBuilder.build 'extconf.rb', nil, @dest_path, output
end
- assert_contains_make_command 'clean', output[2]
- assert_contains_make_command '', output[4]
- assert_contains_make_command 'install', output[6]
+ assert_contains_make_command 'clean', output[4]
+ assert_contains_make_command '', output[7]
+ assert_contains_make_command 'install', output[10]
assert_empty Dir.glob(File.join(@ext, 'siteconf*.rb'))
end
@@ -173,9 +177,9 @@ end
Gem::Ext::ExtConfBuilder.make @ext, output
end
- assert_contains_make_command 'clean', output[0]
- assert_contains_make_command '', output[2]
- assert_contains_make_command 'install', output[4]
+ assert_contains_make_command 'clean', output[1]
+ assert_contains_make_command '', output[4]
+ assert_contains_make_command 'install', output[7]
end
def test_class_make_no_Makefile