ruby-changes:12776
From: nobu <ko1@a...>
Date: Wed, 12 Aug 2009 00:07:02 +0900 (JST)
Subject: [ruby-changes:12776] Ruby:r24501 (trunk): * test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior.
nobu 2009-08-12 00:06:51 +0900 (Wed, 12 Aug 2009) New Revision: 24501 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24501 Log: * test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior. Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 24500) +++ test/ruby/test_rubyoptions.rb (revision 24501) @@ -258,10 +258,10 @@ def test_shebang assert_in_out_err([], "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux\r\np 1\r\n", - [], /Can't exec [\/\\]test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/) + [], /: no Ruby script found in input/) assert_in_out_err([], "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux -foo -bar\r\np 1\r\n", - [], /Can't exec [\/\\]test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/) + [], /: no Ruby script found in input/) assert_in_out_err([], "#!ruby -KU -Eutf-8\r\np \"\u3042\"\r\n") do |r, e| assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/