diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-09-29 19:13:37 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-09-29 19:13:37 +0200 |
commit | 070cbe22b70ec2bec36c7cfc84b726510afa306f (patch) | |
tree | 56cee87834c85bd9f358ebee51bab4893fb9952f /spec/ruby/core/file/rename_spec.rb | |
parent | d51b4e34fbdbe1a845aa2251b1fa3304de809b32 (diff) |
Update to ruby/spec@34e6246
Diffstat (limited to 'spec/ruby/core/file/rename_spec.rb')
-rw-r--r-- | spec/ruby/core/file/rename_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/file/rename_spec.rb b/spec/ruby/core/file/rename_spec.rb index d903e7a0d5..f2c18d4905 100644 --- a/spec/ruby/core/file/rename_spec.rb +++ b/spec/ruby/core/file/rename_spec.rb @@ -14,11 +14,11 @@ describe "File.rename" do end it "renames a file" do - File.exist?(@old).should == true - File.exist?(@new).should == false + File.should.exist?(@old) + File.should_not.exist?(@new) File.rename(@old, @new) - File.exist?(@old).should == false - File.exist?(@new).should == true + File.should_not.exist?(@old) + File.should.exist?(@new) end it "raises an Errno::ENOENT if the source does not exist" do |