Sha256: b519e6ac45b8d5091be577c551b4b6f67e7e0559f14a0637d03e6708663b309c

Contents?: true

Size: 488 Bytes

Versions: 52

Compression:

Stored size: 488 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'

describe "Process.gid" do
  it "returns the correct gid for the user executing this process" do
     current_gid_according_to_unix = `id -gr`.to_i
     Process.gid.should == current_gid_according_to_unix
  end

  it "also goes by Process::GID.rid" do
    Process::GID.rid.should == Process.gid
  end

  it "also goes by Process::Sys.getgid" do
    Process::Sys.getgid.should == Process.gid
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
rhodes-2.3.2 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.2.beta.2 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.2.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.1.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.0 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.0.beta.3 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.0.beta.2 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.3.0.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.6 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.6.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.5 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.5.beta.3 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.5.beta.2 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.5.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.4.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.3 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.3.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.2 spec/framework_spec/app/spec/core/process/gid_spec.rb
rhodes-2.2.2.beta.1 spec/framework_spec/app/spec/core/process/gid_spec.rb