diff options
Diffstat (limited to 'spec/ruby/library/tempfile/close_spec.rb')
-rw-r--r-- | spec/ruby/library/tempfile/close_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/tempfile/close_spec.rb b/spec/ruby/library/tempfile/close_spec.rb index 6cd55beecf..db0eae3fa5 100644 --- a/spec/ruby/library/tempfile/close_spec.rb +++ b/spec/ruby/library/tempfile/close_spec.rb @@ -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 |