summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-14 08:30:00 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-14 08:30:00 +0000
commitcee21ad215f48c3d15f5d5d939fb4ca1c8950f1b (patch)
tree0bd93cd4a86760beaf3244c31380e5bfc5796599 /test
parent23301142cc9021f8364e6249198647b521a37a07 (diff)
* test/ruby/test_system.rb (TestSystem#test_system_at):
added test. [ruby-core:35218] (#4393) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_system.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb
index 45377da063..7f5b81a2de 100644
--- a/test/ruby/test_system.rb
+++ b/test/ruby/test_system.rb
@@ -88,6 +88,13 @@ class TestSystem < Test::Unit::TestCase
}
end
+ def test_system_at
+ if /mswin|mingw/ =~ RUBY_PLATFORM
+ testname = '[ruby-core:35218]'
+ assert_equal("foo\n", `@echo foo`, testname);
+ end
+ end
+
def test_empty_evstr
assert_equal("", eval('"#{}"', nil, __FILE__, __LINE__), "[ruby-dev:25113]")
end