summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-11 15:06:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-11 15:06:51 +0000
commita4661ef011529b079cd38273a459cb46b62b4e29 (patch)
treecbae9031b65f846dbe7ccbfa2c572b62fe9a358f /test/ruby/test_rubyoptions.rb
parentc1feb58d38142e935e409b69f7cebc0f1aa25ba4 (diff)
downloadruby-a4661ef011529b079cd38273a459cb46b62b4e29.tar.gz
ruby-a4661ef011529b079cd38273a459cb46b62b4e29.tar.xz
ruby-a4661ef011529b079cd38273a459cb46b62b4e29.zip
* test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 59be99164..14352052c 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -258,10 +258,10 @@ class TestRubyOptions < Test::Unit::TestCase
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))