mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@d419e74
This commit is contained in:
parent
26a9f80c82
commit
a2fac1d72c
44 changed files with 772 additions and 514 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue