Sha256: a604932bf7e235b843eb655603ecab94c7ffead0f2760ac8b51deb74318889a0

Contents?: true

Size: 601 Bytes

Versions: 4

Compression:

Stored size: 601 Bytes

Contents

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

describe 'Integration' do
  let(:runner) { Guard::RackRunner.new(options) }
  let(:options) { { cmd: 'rackup', 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

4 entries across 4 versions & 1 rubygems

Version Path
guard-rack-2.2.1 spec/lib/guard/integration_spec.rb
guard-rack-2.2.0 spec/lib/guard/integration_spec.rb
guard-rack-2.1.1 spec/lib/guard/integration_spec.rb
guard-rack-2.1.0 spec/lib/guard/integration_spec.rb