summaryrefslogtreecommitdiffstats
path: root/test/ruby
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
commit5dd3b9e240164126b7f5e132cb09fa7bb7a26f77 (patch)
treea46aad84823b791c61d889df59aa79e335e33159 /test/ruby
parent06d72d17ef2a8c8ad82a6d9e70d9cef23f5cd919 (diff)
downloadruby-5dd3b9e240164126b7f5e132cb09fa7bb7a26f77.tar.gz
ruby-5dd3b9e240164126b7f5e132cb09fa7bb7a26f77.tar.xz
ruby-5dd3b9e240164126b7f5e132cb09fa7bb7a26f77.zip
* test/ruby/test_argf.rb (TestArgf#test_skip): updated test
according to clarified behavior. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 9e18a80b4..a6c224ba4 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