Sha256: 021999b0f176a0e05b05b89eff931280ab620898965cbf49aac2ae89b22a6a4f

Contents?: true

Size: 723 Bytes

Versions: 49

Compression:

Stored size: 723 Bytes

Contents

require 'spec_helper'

describe 'unicorn' do
  before do
    mock_config { use_recipes :unicorn }
  end

  it 'has default unicorn pid' do
    mock_config { set :deploy_to, '/foo/bar' }
    config.unicorn_pid.should == '`cat /foo/bar/tmp/pids/unicorn.pid`'
  end

  context 'signals' do
    before do
      mock_config { set :unicorn_pid, '/foo.pid' }
    end

    it 'sends HUP' do
      cli_execute 'unicorn:reload'
      config.should have_run('kill -HUP /foo.pid')
    end

    it 'sends QUIT' do
      cli_execute 'unicorn:stop'
      config.should have_run('kill -QUIT /foo.pid')
    end

    it 'sends USR2' do
      cli_execute 'unicorn:reexec'
      config.should have_run('kill -USR2 /foo.pid')
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
capistrano-deploy-management-0.1.47 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.46 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.45 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.44 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.43 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.42 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.41 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.40 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.39 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.38 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.37 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.36 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.35 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.34 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.33 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.32 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.31 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.30 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.29 spec/unicorn_spec.rb
capistrano-deploy-management-0.1.28 spec/unicorn_spec.rb