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.47 spec/passenger_spec.rb
capistrano-deploy-management-0.1.46 spec/passenger_spec.rb
capistrano-deploy-management-0.1.45 spec/passenger_spec.rb
capistrano-deploy-management-0.1.44 spec/passenger_spec.rb
capistrano-deploy-management-0.1.43 spec/passenger_spec.rb
capistrano-deploy-management-0.1.42 spec/passenger_spec.rb
capistrano-deploy-management-0.1.41 spec/passenger_spec.rb
capistrano-deploy-management-0.1.40 spec/passenger_spec.rb
capistrano-deploy-management-0.1.39 spec/passenger_spec.rb
capistrano-deploy-management-0.1.38 spec/passenger_spec.rb
capistrano-deploy-management-0.1.37 spec/passenger_spec.rb
capistrano-deploy-management-0.1.36 spec/passenger_spec.rb
capistrano-deploy-management-0.1.35 spec/passenger_spec.rb
capistrano-deploy-management-0.1.34 spec/passenger_spec.rb
capistrano-deploy-management-0.1.33 spec/passenger_spec.rb
capistrano-deploy-management-0.1.32 spec/passenger_spec.rb
capistrano-deploy-management-0.1.31 spec/passenger_spec.rb
capistrano-deploy-management-0.1.30 spec/passenger_spec.rb
capistrano-deploy-management-0.1.29 spec/passenger_spec.rb
capistrano-deploy-management-0.1.28 spec/passenger_spec.rb