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/dir/shared/chroot.rb | |
parent | d51b4e34fbdbe1a845aa2251b1fa3304de809b32 (diff) |
Update to ruby/spec@34e6246
Diffstat (limited to 'spec/ruby/core/dir/shared/chroot.rb')
-rw-r--r-- | spec/ruby/core/dir/shared/chroot.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/dir/shared/chroot.rb b/spec/ruby/core/dir/shared/chroot.rb index 93699f93be..b14a433670 100644 --- a/spec/ruby/core/dir/shared/chroot.rb +++ b/spec/ruby/core/dir/shared/chroot.rb @@ -16,7 +16,7 @@ describe :dir_chroot_as_root, shared: true do it "can be used to change the process' root directory" do -> { Dir.send(@method, File.dirname(__FILE__)) }.should_not raise_error - File.exist?("/#{File.basename(__FILE__)}").should be_true + File.should.exist?("/#{File.basename(__FILE__)}") end it "returns 0 if successful" do @@ -29,8 +29,8 @@ describe :dir_chroot_as_root, shared: true do it "can be escaped from with ../" do Dir.send(@method, @real_root) - File.exist?(@ref_dir).should be_true - File.exist?("/#{File.basename(__FILE__)}").should be_false + File.should.exist?(@ref_dir) + File.should_not.exist?("/#{File.basename(__FILE__)}") end it "calls #to_path on non-String argument" do |