1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-05-28 22:41:48 +02:00
parent d070523e7b
commit a66bc2c011
41 changed files with 699 additions and 639 deletions

View file

@ -49,6 +49,14 @@ describe "Tempfile.open" do
tempfile.binmode?.should be_true
end
end
it "uses a blank string for basename when passed no arguments" do
Tempfile.open() do |tempfile|
@tempfile = tempfile
tempfile.closed?.should be_false
end
@tempfile.should_not == nil
end
end
describe "Tempfile.open when passed a block" do