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

Version Path
rhodes-3.1.1 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.2 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.0 spec/framework_spec/app/spec/core/process/uid_spec.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/core/process/uid_spec.rb