summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_ext_configure_builder.rb
diff options
context:
space:
mode:
-rw-r--r--test/rubygems/test_gem_ext_configure_builder.rb18
1 files changed, 8 insertions, 10 deletions
@@ -16,7 +16,7 @@ class TestGemExtConfigureBuilder < RubyGemTestCase
end
def test_self_build
- return if RUBY_PLATFORM =~ /mswin/ # HACK
File.open File.join(@ext, './configure'), 'w' do |configure|
configure.puts "#!/bin/sh\necho \"#{@makefile_body}\" > Makefile"
@@ -37,7 +37,7 @@ class TestGemExtConfigureBuilder < RubyGemTestCase
end
def test_self_build_fail
- return if RUBY_PLATFORM =~ /mswin/ # HACK
output = []
error = assert_raises Gem::InstallError do
@@ -63,6 +63,10 @@ class TestGemExtConfigureBuilder < RubyGemTestCase
end
def test_self_build_has_makefile
File.open File.join(@ext, 'Makefile'), 'w' do |makefile|
makefile.puts @makefile_body
end
@@ -72,14 +76,8 @@ class TestGemExtConfigureBuilder < RubyGemTestCase
Gem::Ext::ConfigureBuilder.build nil, nil, @dest_path, output
end
- case RUBY_PLATFORM
- when /mswin/ then
- assert_equal 'nmake', output[0]
- assert_equal 'nmake install', output[2]
- else
- assert_equal 'make', output[0]
- assert_equal 'make install', output[2]
- end
end
end