ruby-changes:27882
From: nobu <ko1@a...>
Date: Tue, 26 Mar 2013 11:59:20 +0900 (JST)
Subject: [ruby-changes:27882] nobu:r39934 (trunk): test_syntax.rb: envutil
nobu 2013-03-26 11:59:09 +0900 (Tue, 26 Mar 2013) New Revision: 39934 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39934 Log: test_syntax.rb: envutil * test/ruby/test_syntax.rb (test_syntax): require envutil for assert_valid_syntax. Modified files: trunk/test/ruby/test_syntax.rb Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 39933) +++ test/ruby/test_syntax.rb (revision 39934) @@ -3,7 +3,7 @@ require_relative 'envutil' https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L3 class TestSyntax < Test::Unit::TestCase def test_syntax - assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom' + assert_separately %W[--disable-gem -r#{__dir__}/envutil], __FILE__, __LINE__, <<-'eom' assert_nothing_raised(Exception) do for script in Dir[File.expand_path("../../../{lib,sample,ext,test}/**/*.rb", __FILE__)].sort assert_valid_syntax(IO::read(script), script) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/