[前][次][番号順一覧][スレッド一覧]

ruby-changes:35119

From: nobu <ko1@a...>
Date: Sat, 16 Aug 2014 13:49:55 +0900 (JST)
Subject: [ruby-changes:35119] nobu:r47201 (trunk): test_gem_ext_builder.rb: fix wrong skip condition

nobu	2014-08-16 13:49:47 +0900 (Sat, 16 Aug 2014)

  New Revision: 47201

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47201

  Log:
    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.

  Modified files:
    trunk/test/rubygems/test_gem_ext_builder.rb
Index: test/rubygems/test_gem_ext_builder.rb
===================================================================
--- test/rubygems/test_gem_ext_builder.rb	(revision 47200)
+++ test/rubygems/test_gem_ext_builder.rb	(revision 47201)
@@ -234,7 +234,7 @@ install: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_ext_builder.rb#L234
     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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]