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
|
@ -26,8 +26,7 @@ describe :file_grpowned, shared: true do
|
|||
|
||||
@object.send(@method, @file).should == true
|
||||
else
|
||||
# No supplementary groups
|
||||
1.should == 1
|
||||
skip "No supplementary groups"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -37,7 +37,7 @@ describe :file_world_readable, shared: true do
|
|||
it "returns a Fixnum if the file is a directory and chmod 644" do
|
||||
dir = rand().to_s + '-ww'
|
||||
Dir.mkdir(dir)
|
||||
Dir.exist?(dir).should be_true
|
||||
Dir.should.exist?(dir)
|
||||
File.chmod(0644, dir)
|
||||
@object.world_readable?(dir).should be_an_instance_of(Fixnum)
|
||||
Dir.rmdir(dir)
|
||||
|
|
|
@ -36,7 +36,7 @@ describe :file_world_writable, shared: true do
|
|||
it "returns a Fixnum if the file is a directory and chmod 777" do
|
||||
dir = rand().to_s + '-ww'
|
||||
Dir.mkdir(dir)
|
||||
Dir.exist?(dir).should be_true
|
||||
Dir.should.exist?(dir)
|
||||
File.chmod(0777, dir)
|
||||
@object.world_writable?(dir).should be_an_instance_of(Fixnum)
|
||||
Dir.rmdir(dir)
|
||||
|
|
|
@ -60,7 +60,7 @@ describe :process_fork, shared: true do
|
|||
else
|
||||
Process.waitpid(child_id)
|
||||
end
|
||||
File.exist?(@file).should == true
|
||||
File.should.exist?(@file)
|
||||
end
|
||||
|
||||
it "runs a block in a child process" do
|
||||
|
@ -69,7 +69,7 @@ describe :process_fork, shared: true do
|
|||
Process.exit!
|
||||
}
|
||||
Process.waitpid(pid)
|
||||
File.exist?(@file).should == true
|
||||
File.should.exist?(@file)
|
||||
end
|
||||
|
||||
it "marks threads from the parent as killed" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue