diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-27 04:04:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-27 04:04:26 +0000 |
commit | d10cea5010ee88cd4039908a3d02b10b79f01ea1 (patch) | |
tree | e79b78200ecd027a6313aaf163e1b844b0ed4fb2 /test | |
parent | ad1715f0b9802ddf23e83232661c7b67d2a0a7d6 (diff) |
test_system.rb: indent
* test/ruby/test_system.rb (TestSystem#test_system): adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_system.rb | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index d66f9018c1..b877538de8 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -93,25 +93,25 @@ class TestSystem < Test::Unit::TestCase end def test_system_at - if /mswin|mingw/ =~ RUBY_PLATFORM - bug4393 = '[ruby-core:35218]' + if /mswin|mingw/ =~ RUBY_PLATFORM + bug4393 = '[ruby-core:35218]' - # @ + builtin command - assert_equal("foo\n", `@echo foo`, bug4393); - assert_equal("foo\n", `@@echo foo`, bug4393); - assert_equal("@@foo\n", `@@echo @@foo`, bug4393); + # @ + builtin command + assert_equal("foo\n", `@echo foo`, bug4393); + assert_equal("foo\n", `@@echo foo`, bug4393); + assert_equal("@@foo\n", `@@echo @@foo`, bug4393); - # @ + non builtin command - Dir.mktmpdir("ruby_script_tmp") {|tmpdir| - tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" + # @ + non builtin command + Dir.mktmpdir("ruby_script_tmp") {|tmpdir| + tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" - tmp = open(tmpfilename, "w") - tmp.print "foo\nbar\nbaz\n@foo"; - tmp.close + tmp = open(tmpfilename, "w") + tmp.print "foo\nbar\nbaz\n@foo"; + tmp.close - assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); - } - end + assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); + } + end end def test_system_redirect_win |