mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@34e6246
This commit is contained in:
parent
d51b4e34fb
commit
070cbe22b7
35 changed files with 127 additions and 133 deletions
|
@ -161,14 +161,14 @@ describe "IO#reopen with a String" do
|
|||
@io = new_io @name, "w"
|
||||
|
||||
@io.reopen(@other_name)
|
||||
File.exist?(@other_name).should be_true
|
||||
File.should.exist?(@other_name)
|
||||
end
|
||||
|
||||
it "creates the file if it doesn't exist if the IO is opened in write mode" do
|
||||
@io = new_io @name, "a"
|
||||
|
||||
@io.reopen(@other_name)
|
||||
File.exist?(@other_name).should be_true
|
||||
File.should.exist?(@other_name)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue