Sha256: d69f84291f52033b305859f00b7df084dfbfb42d43bece1ee6941c3e312bc2a0

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

require "test_helper"

class PidfileTest < MiniTest::Unit::TestCase
  include SpawnHelper

  def teardown
    kill_server
  end

  def test_pidfile
    pid = spawn_server "-P #{PID_FILE}"
    assert wait_pid_file, "Pid file doesn't exist."

    pidfile_pid = File.read(PID_FILE).to_i
    assert_equal pid, pidfile_pid

    kill_server
    assert !File.exist?(PID_FILE)
  end


end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mail_sandbox-0.1.3 test/integration/pidfile_test.rb
mail_sandbox-0.1.2 test/integration/pidfile_test.rb
mail_sandbox-0.1.1 test/integration/pidfile_test.rb
mail_sandbox-0.1.0 test/integration/pidfile_test.rb