mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
test_io.rb: use assert_not_predicate
* test/ruby/test_io.rb (test_DATA_binmode): assert_not_predicate for more descriptive message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9ec940a4c9
commit
64efbf246e
1 changed files with 3 additions and 8 deletions
|
@ -2470,15 +2470,10 @@ End
|
|||
end
|
||||
|
||||
def test_DATA_binmode
|
||||
make_tempfile {|t|
|
||||
open(t.path, "w") {|f|
|
||||
f.puts <<-SRC
|
||||
puts DATA.binmode?
|
||||
assert_separately([], <<-SRC)
|
||||
assert_not_predicate(DATA, :binmode?)
|
||||
__END__
|
||||
SRC
|
||||
}
|
||||
assert_in_out_err(t.path, [], %w(false))
|
||||
}
|
||||
end
|
||||
|
||||
def test_threaded_flush
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue