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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue