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.25 spec/passenger_spec.rb
capistrano-deploy-management-0.1.24 spec/passenger_spec.rb
capistrano-deploy-management-0.1.23 spec/passenger_spec.rb
capistrano-deploy-management-0.1.22 spec/passenger_spec.rb
capistrano-deploy-management-0.1.21 spec/passenger_spec.rb
capistrano-deploy-management-0.1.20 spec/passenger_spec.rb
capistrano-deploy-management-0.1.19 spec/passenger_spec.rb
capistrano-deploy-management-0.1.18 spec/passenger_spec.rb
capistrano-deploy-management-0.1.17 spec/passenger_spec.rb
capistrano-deploy-management-0.1.16 spec/passenger_spec.rb
capistrano-deploy-management-0.1.15 spec/passenger_spec.rb
capistrano-deploy-management-0.1.14 spec/passenger_spec.rb
capistrano-deploy-management-0.1.13 spec/passenger_spec.rb
capistrano-deploy-management-0.1.12 spec/passenger_spec.rb
capistrano-deploy-management-0.1.11 spec/passenger_spec.rb
capistrano-deploy-management-0.1.10 spec/passenger_spec.rb
capistrano-deploy-management-0.1.9 spec/passenger_spec.rb
capistrano-deploy-management-0.1.8 spec/passenger_spec.rb
capistrano-deploy-management-0.1.7 spec/passenger_spec.rb
capistrano-deploy-management-0.1.6 spec/passenger_spec.rb