Sha256: 6d7cb2a54e7c36196739539c5acc4ccab1d2e2bd163c8a8ec2137577128f702e
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 Bytes
Contents
require 'spec_helper' describe "deploy" do include_context :capistrano context "domain my-domain.com" do before { subject.set :domain, 'my-domain.com' } its(:deploy_to) { should == '/var/www/my-domain.com' } its(:group) { should == :www } it "performs set_permissions after deploy" do subject.should callback('deploy:set_permissions').after('deploy') end context 'set_permissions task' do it "changes permissions of deploy directory" do subject.load 'deploy' subject.set :group, 'my-group' subject.set :use_sudo, false subject.execute_task(task) subject.should have_run("chgrp -R my-group #{subject.fetch(:deploy_to)}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
o2h-0.1.0 | spec/recipes/deploy_spec.rb |
o2h-0.0.5 | spec/recipes/deploy_spec.rb |
o2h-0.0.4 | spec/recipes/deploy_spec.rb |
o2h-0.0.3 | spec/recipes/deploy_spec.rb |