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
|
@ -24,9 +24,9 @@ describe :io_binwrite, shared: true do
|
|||
it "creates a file if missing" do
|
||||
fn = @filename + "xxx"
|
||||
begin
|
||||
File.exist?(fn).should be_false
|
||||
File.should_not.exist?(fn)
|
||||
IO.send(@method, fn, "test")
|
||||
File.exist?(fn).should be_true
|
||||
File.should.exist?(fn)
|
||||
ensure
|
||||
rm_r fn
|
||||
end
|
||||
|
@ -35,9 +35,9 @@ describe :io_binwrite, shared: true do
|
|||
it "creates file if missing even if offset given" do
|
||||
fn = @filename + "xxx"
|
||||
begin
|
||||
File.exist?(fn).should be_false
|
||||
File.should_not.exist?(fn)
|
||||
IO.send(@method, fn, "test", 0)
|
||||
File.exist?(fn).should be_true
|
||||
File.should.exist?(fn)
|
||||
ensure
|
||||
rm_r fn
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue