Project

General

Profile

Actions

Bug #3244

closed

the behavior of Tempfile#size was changed

Added by mame (Yusuke Endoh) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
-
Backport:
[ruby-dev:41140]

Description

=begin
なかださん
遠藤です。

r27578 のせいで rubyspec のエラーが増えました。
よほどの事情がない限り revert しようと思います。
個人的には納得できる変更なので、残念ですが……。

Tempfile#length returns 0 when self is closed FAILED
Expected 5
to have same value and type as 0

/home/mame/work/ruby/spec/rubyspec/library/tempfile/shared/length.rb:15:in
block (2 levels) in <top (required)>' /home/mame/work/ruby/spec/rubyspec/library/tempfile/length_spec.rb:5:in <top (required)>'

Tempfile#size returns 0 when self is closed FAILED
Expected 5
to have same value and type as 0

/home/mame/work/ruby/spec/rubyspec/library/tempfile/shared/length.rb:15:in
block (2 levels) in <top (required)>' /home/mame/work/ruby/spec/rubyspec/library/tempfile/size_spec.rb:5:in <top (required)>'

--
Yusuke Endoh
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0