Sha256: cb450ca588c4d2e68663c0ab0b466124d347f8e55f8200efa48e032ff38baffd

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

require 'spec_helper'

describe GetRunningProcesses do
  describe "Methods" do
    describe ".collect_processes" do
      it "returns an array of processes and their PIDs" do
        processes = GetRunningProcesses.collect_processes
        expect(processes[0][1]).to eq('1')
        expect(processes[0][7]).to eq('/sbin/init')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
get_running_processes-0.0.4 spec/get_running_processes_spec.rb
get_running_processes-0.0.3 spec/get_running_processes_spec.rb
get_running_processes-0.0.2 spec/get_running_processes_spec.rb
get_running_processes-0.0.1 spec/get_running_processes_spec.rb