Sha256: 583e3358a80f11440463e4054763f9fc468418b43c29d62912d088529b622889

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'
require 'guard/rack/runner'

describe 'Integration' do
  let(:runner) { Guard::RackRunner.new(options) }
  let(:options) { { environment: 'development', port: 3000, config: 'spec/lib/guard/integration.ru' } }

  describe '#start' do
    context 'run' do
      it 'should run' do
        expect(runner.start).to be_truthy
        pid = runner.pid
        expect(pid).not_to be_nil
        expect(Process.getpgid(pid)).to be > 0
        runner.stop
        expect do
          Process.getpgid(pid)
        end.to raise_error Errno::ESRCH
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guard-rack-2.0.0 spec/lib/guard/integration_spec.rb