From 4c7038c1777bfe41410fd99ee4b07b3d07f28fc3 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 16 Aug 2014 04:49:47 +0000 Subject: test_gem_ext_builder.rb: fix wrong skip condition * test/rubygems/test_gem_ext_builder.rb (test_build_extensions_extconf_bad): fix wrong skip condition by removing wrong expace, String#include? does not turn a string argument into a regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_ext_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_ext_builder.rb b/test/rubygems/test_gem_ext_builder.rb index da040ea982..eb86f53872 100644 --- a/test/rubygems/test_gem_ext_builder.rb +++ b/test/rubygems/test_gem_ext_builder.rb @@ -234,7 +234,7 @@ install: refute_path_exists @spec.gem_build_complete_path skip "Gem.ruby is not the name of the binary being run in the end" \ - unless File.read(gem_make_out).include? "#{Regexp.escape Gem.ruby}:" + unless File.read(gem_make_out).include? "#{Gem.ruby}:" assert_match %r%#{Regexp.escape Gem.ruby}: No such file%, File.read(gem_make_out) -- cgit v1.2.3