blazing 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +0,0 @@
1
- require 'spec_helper'
2
- require 'blazing/config'
3
- require 'blazing/runner'
4
- require 'grit'
5
-
6
- describe 'blazing setup' do
7
-
8
- before :each do
9
- setup_sandbox
10
- @production_url = 'user@host:/some/where'
11
- @staging_url = 'user@host:/some/where/else'
12
-
13
- @config = Blazing::Config.new
14
- @config.target :production, @production_url
15
- @config.target :staging, @staging_url, :default => true
16
- @runner = Blazing::Runner.new(@config)
17
- end
18
-
19
- after :each do
20
- teardown_sandbox
21
- end
22
-
23
- it 'clones the repository, configures it and updates the target' do
24
- @shell = Blazing::Shell.new
25
- @target = @config.default_target
26
- @target.instance_variable_set('@shell', @shell)
27
- @shell.should_receive(:run).with("ssh user@host 'mkdir /some/where/else; cd /some/where/else && git init && cd /some/where/else && git config receive.denyCurrentBranch ignore'")
28
- @target.should_receive(:apply_hook)
29
- @runner.exec('setup')
30
- end
31
-
32
- end