Sha256: 4a5ab0659082ade43ecf4f742005ba837b36f7295147af44f9ca3f66bd38ec4e

Contents?: true

Size: 505 Bytes

Versions: 49

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe 'passenger' do
  before do
    mock_config do
      use_recipe :passenger
      set :deploy_to, '/foo/bar'
    end
  end

  describe 'passenger:restart' do
    it 'touches tmp/restart.txt' do
      cli_execute 'passenger:restart'
      config.should have_run('touch /foo/bar/tmp/restart.txt')
    end

    it 'is executed after deploy:restart' do
      cli_execute 'deploy:restart'
      config.should have_executed('deploy:restart', 'passenger:restart')
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
capistrano-deploy-management-0.1.5 spec/passenger_spec.rb
capistrano-deploy-management-0.1.4 spec/passenger_spec.rb
capistrano-deploy-management-0.1.3 spec/passenger_spec.rb
capistrano-deploy-management-0.1.2 spec/passenger_spec.rb
capistrano-deploy-management-0.1.1 spec/passenger_spec.rb
capistrano-deploy-management-0.1.0 spec/passenger_spec.rb
capistrano-deploy-0.3.2 spec/passenger_spec.rb
capistrano-deploy-0.3.1 spec/passenger_spec.rb
capistrano-deploy-0.3.0 spec/passenger_spec.rb