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-12-27 16:46:08 +01:00
parent 26a9f80c82
commit a2fac1d72c
44 changed files with 772 additions and 514 deletions

View file

@ -10,7 +10,6 @@ describe "Kernel#printf" do
end
describe "Kernel.printf" do
before :each do
@stdout = $stdout
@name = tmp("kernel_puts.txt")
@ -38,7 +37,7 @@ describe "Kernel.printf" do
context "io is specified" do
it_behaves_like :kernel_sprintf, -> format, *args {
io = StringIO.new
printf(io, format, *args)
Kernel.printf(io, format, *args)
io.string
}
end
@ -49,7 +48,7 @@ describe "Kernel.printf" do
begin
$stdout = io = StringIO.new
printf(format, *args)
Kernel.printf(format, *args)
io.string
ensure
$stdout = stdout