mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
34 lines
856 B
Ruby
34 lines
856 B
Ruby
require 'integration_spec_helper'
|
|
|
|
describe 'cap deploy:finished', slow: true do
|
|
before do
|
|
install_test_app_with(config)
|
|
end
|
|
|
|
describe 'deploy' do
|
|
let(:config) {
|
|
%{
|
|
set :stage, :#{stage}
|
|
set :deploy_to, '#{deploy_to}'
|
|
set :repo_url, 'git://github.com/capistrano/capistrano.git'
|
|
set :branch, 'v3'
|
|
server 'localhost', roles: %w{web app}, user: '#{current_user}'
|
|
set :linked_files, %w{config/database.yml}
|
|
set :linked_dirs, %w{bin log public/system vendor/bundle}
|
|
}
|
|
}
|
|
|
|
describe 'log_revision' do
|
|
before do
|
|
cap 'deploy:started'
|
|
cap 'deploy:updating'
|
|
cap 'deploy:publishing'
|
|
cap 'deploy:finished'
|
|
end
|
|
|
|
it 'writes the log file' do
|
|
expect(deploy_to.join('revisions.log')).to be_a_file
|
|
end
|
|
end
|
|
end
|
|
end
|