Sha256: e0a732b28a67b8706b3dcd60eaac88aa2c603932944d2d137c61ff3be95db205

Contents?: true

Size: 532 Bytes

Versions: 31

Compression:

Stored size: 532 Bytes

Contents

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

describe "Process.gid" do
  platform_is_not :android 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
  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

31 entries across 31 versions & 1 rubygems

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