Sha256: 14a664956abd8393e8e77a5a8d8dcf46272bd64c942cb722ce04ad29769f7371
Contents?: true
Size: 530 Bytes
Versions: 31
Compression:
Stored size: 530 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "Process.uid" do platform_is_not :android do it "returns the correct uid for the user executing this process" do current_uid_according_to_unix = `id -ur`.to_i Process.uid.should == current_uid_according_to_unix end end it "also goes by Process::UID.rid" do Process::UID.rid.should == Process.uid end it "also goes by Process::Sys.getuid" do Process::Sys.getuid.should == Process.uid end end
Version data entries
31 entries across 31 versions & 1 rubygems