Sha256: bdca6a53245caa85c087516949fa1e87fa511c228a6c15f6cba01ee8650a8343
Contents?: true
Size: 486 Bytes
Versions: 52
Compression:
Stored size: 486 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "Process.uid" 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 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
52 entries across 52 versions & 1 rubygems