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