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
|
@ -18,7 +18,7 @@ describe "Tempfile#close when passed no argument or [false]" do
|
|||
it "does not unlink self" do
|
||||
path = @tempfile.path
|
||||
@tempfile.close
|
||||
File.exist?(path).should be_true
|
||||
File.should.exist?(path)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -35,7 +35,7 @@ describe "Tempfile#close when passed [true]" do
|
|||
it "unlinks self" do
|
||||
path = @tempfile.path
|
||||
@tempfile.close(true)
|
||||
File.exist?(path).should be_false
|
||||
File.should_not.exist?(path)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -52,6 +52,6 @@ describe "Tempfile#close!" do
|
|||
it "unlinks self" do
|
||||
path = @tempfile.path
|
||||
@tempfile.close!
|
||||
File.exist?(path).should be_false
|
||||
File.should_not.exist?(path)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue