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
|
end
|
||||||
|
|
||||||
def test_DATA_binmode
|
def test_DATA_binmode
|
||||||
make_tempfile {|t|
|
assert_separately([], <<-SRC)
|
||||||
open(t.path, "w") {|f|
|
assert_not_predicate(DATA, :binmode?)
|
||||||
f.puts <<-SRC
|
|
||||||
puts DATA.binmode?
|
|
||||||
__END__
|
__END__
|
||||||
SRC
|
SRC
|
||||||
}
|
|
||||||
assert_in_out_err(t.path, [], %w(false))
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_threaded_flush
|
def test_threaded_flush
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue