Sha256: 1881a57e8aa54598fd7e400c3fb36383c80a556c92efe00a83be960449fe0837

Contents?: true

Size: 712 Bytes

Versions: 3

Compression:

Stored size: 712 Bytes

Contents

$LOAD_PATH.unshift "../lib"
require 'rspec'

shared_context :windows do
  def process_string_for_mirage(mirage_port, pid)
    %Q{ruby.exe                      #{pid} Console                    1      6,076 K Running         WIN-ATPGMMC0218\\\\leon        0:01:58 mirage server port #{mirage_port}}
  end

  before :each do
    ChildProcess.should_receive(:windows?).any_number_of_times.and_return(true)
  end
end

shared_context :linux do

  def process_string_for_mirage(mirage_port, pid)
    "team     #{pid}  6.2  0.4  84328 20760 pts/1    Sl   22:15   0:00 Mirage Server port #{mirage_port}"
  end

  before :each do
    ChildProcess.should_receive(:windows?).any_number_of_times.and_return(false)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mirage-2.4.2 spec/spec_helper.rb
mirage-2.4.1 spec/spec_helper.rb
mirage-2.4.0 spec/spec_helper.rb