aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_argf.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-16 15:49:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-16 15:49:41 +0000
commitbe3c53d59da1306fb97d5b306a71dc3be0e4c091 (patch)
treea46aad84823b791c61d889df59aa79e335e33159 /test/ruby/test_argf.rb
parentd3b852345a646f1058b40033c9f02e3d14c45ab6 (diff)
downloadruby-be3c53d59da1306fb97d5b306a71dc3be0e4c091.tar.gz
* test/ruby/test_argf.rb (TestArgf#test_skip): updated test
according to clarified behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_argf.rb')
-rw-r--r--test/ruby/test_argf.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb
index 9e18a80b40..a6c224ba41 100644
--- a/test/ruby/test_argf.rb
+++ b/test/ruby/test_argf.rb
@@ -658,16 +658,12 @@ class TestArgf < Test::Unit::TestCase
def test_skip
ruby('-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
- begin
- ARGF.skip
- rescue
- puts "cannot skip" # ???
- end
+ ARGF.skip
puts ARGF.gets
ARGF.skip
puts ARGF.read
SRC
- assert_equal("cannot skip\n1\n3\n4\n5\n6\n", f.read)
+ assert_equal("1\n3\n4\n5\n6\n", f.read)
end
end