albacore 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +84 -81
- data/VERSION +1 -1
- data/install_dependencies.rb +10 -10
- data/lib/albacore.rb +10 -2
- data/lib/albacore/assemblyinfo.rb +100 -100
- data/lib/albacore/assemblyinfolanguages/csharpengine.rb +14 -0
- data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +14 -0
- data/lib/albacore/docu.rb +39 -0
- data/lib/albacore/exec.rb +23 -0
- data/lib/albacore/expandtemplates.rb +73 -71
- data/lib/albacore/msbuild.rb +56 -61
- data/lib/albacore/mspectestrunner.rb +44 -42
- data/lib/albacore/nant.rb +39 -0
- data/lib/albacore/ncoverconsole.rb +68 -61
- data/lib/albacore/ncoverreport.rb +56 -55
- data/lib/albacore/ncoverreports/assemblyfilter.rb +7 -7
- data/lib/albacore/ncoverreports/branchcoverage.rb +7 -7
- data/lib/albacore/ncoverreports/classfilter.rb +5 -5
- data/lib/albacore/ncoverreports/codecoveragebase.rb +22 -22
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +19 -19
- data/lib/albacore/ncoverreports/documentfilter.rb +5 -5
- data/lib/albacore/ncoverreports/fullcoveragereport.rb +17 -17
- data/lib/albacore/ncoverreports/methodcoverage.rb +7 -7
- data/lib/albacore/ncoverreports/methodfilter.rb +5 -5
- data/lib/albacore/ncoverreports/namespacefilter.rb +5 -5
- data/lib/albacore/ncoverreports/reportfilterbase.rb +23 -23
- data/lib/albacore/ncoverreports/summaryreport.rb +18 -18
- data/lib/albacore/ncoverreports/symbolcoverage.rb +6 -7
- data/lib/albacore/ndepend.rb +35 -0
- data/lib/albacore/nunittestrunner.rb +36 -35
- data/lib/albacore/plink.rb +48 -0
- data/lib/albacore/sftp.rb +33 -31
- data/lib/albacore/sqlcmd.rb +54 -51
- data/lib/albacore/ssh.rb +35 -33
- data/lib/albacore/support/albacore_helper.rb +1 -4
- data/lib/albacore/support/attrmethods.rb +25 -0
- data/lib/albacore/support/failure.rb +17 -17
- data/lib/albacore/support/globalconfig.rb +6 -0
- data/lib/albacore/support/logging.rb +30 -28
- data/lib/albacore/support/runcommand.rb +41 -41
- data/lib/albacore/support/yamlconfig.rb +23 -27
- data/lib/albacore/unzip.rb +28 -0
- data/lib/albacore/xbuild.rb +54 -0
- data/lib/albacore/xunittestrunner.rb +40 -43
- data/lib/albacore/zipdirectory.rb +72 -63
- data/lib/rake/assemblyinfotask.rb +12 -11
- data/lib/rake/docutask.rb +17 -0
- data/lib/rake/exectask.rb +18 -0
- data/lib/rake/expandtemplatestask.rb +12 -11
- data/lib/rake/msbuildtask.rb +13 -12
- data/lib/rake/mspectask.rb +12 -11
- data/lib/rake/nanttask.rb +17 -0
- data/lib/rake/ncoverconsoletask.rb +12 -11
- data/lib/rake/ncoverreporttask.rb +12 -11
- data/lib/rake/ndependtask.rb +23 -0
- data/lib/rake/nunittask.rb +12 -11
- data/lib/rake/plinktask.rb +23 -0
- data/lib/rake/renametask.rb +15 -15
- data/lib/rake/sftptask.rb +11 -10
- data/lib/rake/sqlcmdtask.rb +13 -12
- data/lib/rake/sshtask.rb +11 -10
- data/lib/rake/support/albacoretask.rb +16 -15
- data/lib/rake/unziptask.rb +17 -0
- data/lib/rake/xbuildtask.rb +22 -0
- data/lib/rake/xunittask.rb +12 -11
- data/lib/rake/ziptask.rb +12 -11
- data/rakefile.rb +255 -204
- data/spec/assemblyinfo_spec.rb +426 -221
- data/spec/assemblyinfotask_spec.rb +21 -21
- data/spec/docu_spec.rb +70 -0
- data/spec/docutask_spec.rb +39 -0
- data/spec/exec_spec.rb +23 -0
- data/spec/exectask_spec.rb +31 -0
- data/spec/expandtemplates_spec.rb +149 -148
- data/spec/expandtemplatestask_spec.rb +21 -21
- data/spec/msbuild_spec.rb +150 -139
- data/spec/msbuildtask_spec.rb +21 -21
- data/spec/mspectask_spec.rb +21 -21
- data/spec/nant_spec.rb +101 -0
- data/spec/nanttask_spec.rb +31 -0
- data/spec/ncoverconsole_spec.rb +253 -221
- data/spec/ncoverconsoletask_spec.rb +21 -21
- data/spec/ncoverreport_spec.rb +538 -523
- data/spec/ncoverreporttask_spec.rb +21 -21
- data/spec/ndepend_spec.rb +49 -0
- data/spec/{commandtask_spec.rb → ndependtask_spec.rb} +10 -10
- data/spec/nunittask_spec.rb +21 -21
- data/spec/nunittestrunner_spec.rb +6 -6
- data/spec/patches/docu_patch.rb +13 -0
- data/spec/patches/system_patch.rb +18 -18
- data/spec/patches/tasklib_patch.rb +10 -10
- data/spec/plink_spec.rb +61 -0
- data/spec/plinktask_spec.rb +31 -0
- data/spec/renametask_spec.rb +21 -21
- data/spec/sftp_spec.rb +24 -24
- data/spec/sftptask_spec.rb +31 -31
- data/spec/sqlcmd_spec.rb +118 -120
- data/spec/sqlcmdtask_spec.rb +21 -21
- data/spec/ssh_spec.rb +36 -37
- data/spec/sshtask_spec.rb +29 -29
- data/spec/support/TestSolution/NDependProject.xml +315 -0
- data/spec/support/TestSolution/TestSolution.XUnitTests/Class1.cs +12 -12
- data/spec/support/TestSolution/TestSolution.XUnitTests/FailingTestFixture.cs +14 -0
- data/spec/support/TestSolution/TestSolution.XUnitTests/TestSolution.XUnitTests.csproj +1 -0
- data/spec/support/TestSolution/TestSolution.build +25 -0
- data/spec/support/assemblyinfotester.rb +40 -38
- data/spec/support/expandtemplatestestdata.rb +73 -73
- data/spec/support/msbuildtestdata.rb +28 -28
- data/spec/support/nanttestdata.rb +33 -0
- data/spec/support/ncoverconsoletestdata.rb +18 -0
- data/spec/support/ncoverreporttestdata.rb +24 -24
- data/spec/support/spec_helper.rb +2 -1
- data/spec/support/yamlconfig/msbuild.yml +3 -0
- data/spec/support/yamlconfig/yaml_autoconfig_test.yml +1 -0
- data/spec/support/ziptestdata.rb +11 -6
- data/spec/xunit_spec.rb +63 -0
- data/spec/xunittask_spec.rb +19 -19
- data/spec/yamlconfig_spec.rb +38 -52
- data/spec/zip_spec.rb +56 -11
- data/spec/ziptask_spec.rb +22 -22
- metadata +53 -8
- data/lib/albacore/command.rb +0 -23
- data/lib/rake/commandtask.rb +0 -16
- data/spec/command_spec.rb +0 -23
data/spec/sftp_spec.rb
CHANGED
@@ -2,29 +2,29 @@ require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
|
|
2
2
|
require 'albacore/sftp'
|
3
3
|
|
4
4
|
describe Sftp, 'when uploading files over sftp' do
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
before :each do
|
6
|
+
@sftpstub = Net::SFTP::Session.stub_instance(:upload! => nil)
|
7
|
+
Net::SFTP.stub_method(:start).yields(@sftpstub)
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
9
|
+
@sftp = Sftp.new
|
10
|
+
@sftp.server="server"
|
11
|
+
@sftp.username="user"
|
12
|
+
@sftp.password="secret"
|
13
|
+
|
14
|
+
@sftp.upload_files(
|
15
|
+
"some.file" => "./somefolder/some.file",
|
16
|
+
"another.file" => "another/folder/another.file"
|
17
|
+
)
|
18
|
+
|
19
|
+
@sftp.upload
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should attempt to open a connection with the supplied connection information" do
|
23
|
+
Net::SFTP.should have_received(:start).with("server", "user", :password => "secret")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should upload the local files to the remote destination" do
|
27
|
+
@sftpstub.should have_received(:upload!).with("some.file", "./somefolder/some.file")
|
28
|
+
@sftpstub.should have_received(:upload!).with("another.file", "another/folder/another.file")
|
29
|
+
end
|
30
30
|
end
|
data/spec/sftptask_spec.rb
CHANGED
@@ -4,38 +4,38 @@ require 'rake/sftptask'
|
|
4
4
|
require 'tasklib_patch'
|
5
5
|
|
6
6
|
describe Albacore::SftpTask, "when running" do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
7
|
+
before :all do
|
8
|
+
@sftpstub = Net::SFTP::Session.stub_instance(:upload! => nil)
|
9
|
+
Net::SFTP.stub_method(:start).yields(@sftpstub)
|
10
|
+
end
|
11
|
+
|
12
|
+
before :each do
|
13
|
+
task = Albacore::SftpTask.new(:sftp) do |t|
|
14
|
+
@yielded_object = t
|
15
|
+
end
|
16
|
+
task.extend(TasklibPatch)
|
17
|
+
Rake::Task[:sftp].invoke
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should yield the sftp api" do
|
21
|
+
@yielded_object.kind_of?(Sftp).should == true
|
22
|
+
end
|
23
23
|
end
|
24
24
|
|
25
25
|
describe Albacore::SftpTask, "when execution fails" do
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
26
|
+
before :all do
|
27
|
+
@sftpstub = Net::SFTP::Session.stub_instance(:upload! => nil)
|
28
|
+
Net::SFTP.stub_method(:start).yields(@sftpstub)
|
29
|
+
end
|
30
|
+
|
31
|
+
before :each do
|
32
|
+
@task = Albacore::SftpTask.new(:failingtask)
|
33
|
+
@task.extend(TasklibPatch)
|
34
|
+
@task.fail
|
35
|
+
Rake::Task["failingtask"].invoke
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should fail the rake task" do
|
39
|
+
@task.task_failed.should be_true
|
40
|
+
end
|
41
41
|
end
|
data/spec/sqlcmd_spec.rb
CHANGED
@@ -2,138 +2,136 @@ require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
|
|
2
2
|
require 'albacore/sqlcmd'
|
3
3
|
|
4
4
|
describe SQLCmd, "when running a script file against a database with authentication information" do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
5
|
+
before :all do
|
6
|
+
@cmd = SQLCmd.new
|
7
|
+
@cmd.path_to_command = "sqlcmd.exe"
|
8
|
+
@cmd.log_level = :verbose
|
9
|
+
@cmd.extend(SystemPatch)
|
10
|
+
@cmd.disable_system = true
|
11
|
+
|
12
|
+
@cmd.server="a server"
|
13
|
+
@cmd.database="a database"
|
14
|
+
@cmd.username="some user"
|
15
|
+
@cmd.password="shh! it's a secret!"
|
16
|
+
@cmd.scripts "somescript.sql"
|
17
|
+
|
18
|
+
@cmd.run
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should specify the location of the sqlcmd exe" do
|
22
|
+
@cmd.system_command.should include("sqlcmd.exe")
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should specify the script file" do
|
26
|
+
@cmd.system_command.should include("-i \"somescript.sql\"")
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should specify the server" do
|
30
|
+
@cmd.system_command.should include("-S \"a server\"")
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should specify the database" do
|
34
|
+
@cmd.system_command.should include("-d \"a database\"")
|
35
|
+
end
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
37
|
+
it "should specify the username" do
|
38
|
+
@cmd.system_command.should include("-U \"some user\"")
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should specify the password" do
|
42
|
+
@cmd.system_command.should include("-P \"shh! it's a secret!\"")
|
43
|
+
end
|
44
44
|
end
|
45
45
|
|
46
46
|
describe SQLCmd, "when running with no command path specified" do
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
47
|
+
before :all do
|
48
|
+
strio = StringIO.new
|
49
|
+
@cmd = SQLCmd.new
|
50
|
+
@cmd.log_level = :verbose
|
51
|
+
@cmd.log_device = strio
|
52
|
+
@cmd.extend(SystemPatch)
|
53
|
+
@cmd.disable_system = true
|
54
|
+
|
55
|
+
@cmd.run
|
56
|
+
@log_data = strio.string
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should fail" do
|
60
|
+
@cmd.failed.should be_true
|
61
|
+
end
|
62
|
+
|
63
|
+
it "should log a failure message" do
|
64
|
+
@log_data.should include('SQLCmd.path_to_command cannot be nil.')
|
65
|
+
end
|
66
66
|
end
|
67
67
|
|
68
68
|
describe SQLCmd, "when execution of sqlcmd fails" do
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
69
|
+
before :all do
|
70
|
+
strio = StringIO.new
|
71
|
+
@cmd = SQLCmd.new
|
72
|
+
@cmd.path_to_command="sqlcmd.exe"
|
73
|
+
@cmd.log_level = :verbose
|
74
|
+
@cmd.log_device = strio
|
75
|
+
@cmd.extend(SystemPatch)
|
76
|
+
@cmd.disable_system = true
|
77
|
+
@cmd.force_system_failure = true
|
78
|
+
|
79
|
+
@cmd.run
|
80
|
+
@log_data = strio.string
|
81
|
+
end
|
82
|
+
|
83
|
+
|
84
|
+
it "should fail" do
|
85
|
+
@cmd.failed.should be_true
|
86
|
+
end
|
87
|
+
|
88
|
+
it "should log a failure message" do
|
89
|
+
@log_data.should include('SQLCmd Failed. See Build Log For Detail.')
|
90
|
+
end
|
91
91
|
end
|
92
92
|
|
93
93
|
describe SQLCmd, "when running multiple script files" do
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
@cmd.system_command.should include("-i \"did you get.sql\"")
|
110
|
-
end
|
94
|
+
before :all do
|
95
|
+
@cmd = SQLCmd.new
|
96
|
+
@cmd.path_to_command = "sqlcmd.exe"
|
97
|
+
@cmd.log_level = :verbose
|
98
|
+
@cmd.extend(SystemPatch)
|
99
|
+
@cmd.disable_system = true
|
100
|
+
|
101
|
+
@cmd.scripts "did you get.sql", "that thing.sql", "i sent you.sql"
|
102
|
+
|
103
|
+
@cmd.run
|
104
|
+
end
|
105
|
+
|
106
|
+
it "should specify the first script file" do
|
107
|
+
@cmd.system_command.should include("-i \"did you get.sql\"")
|
108
|
+
end
|
111
109
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
110
|
+
it "should specify the second script file" do
|
111
|
+
@cmd.system_command.should include("-i \"that thing.sql\"")
|
112
|
+
end
|
113
|
+
|
114
|
+
it "should specify the third script file" do
|
115
|
+
@cmd.system_command.should include("-i \"i sent you.sql\"")
|
116
|
+
end
|
119
117
|
end
|
120
118
|
|
121
119
|
describe SQLCmd, "when running with variables specified" do
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
120
|
+
before :all do
|
121
|
+
@cmd = SQLCmd.new
|
122
|
+
@cmd.path_to_command = "sqlcmd.exe"
|
123
|
+
@cmd.log_level = :verbose
|
124
|
+
@cmd.extend(SystemPatch)
|
125
|
+
@cmd.disable_system = true
|
126
|
+
@cmd.scripts "somescript.sql"
|
127
|
+
|
128
|
+
@cmd.variables :myvar => "my value", :another_var => :another_value
|
129
|
+
|
130
|
+
@cmd.run
|
131
|
+
end
|
132
|
+
|
133
|
+
it "should supply the variables to sqlcmd" do
|
134
|
+
@cmd.system_command.should include("-v myvar=my value")
|
135
|
+
@cmd.system_command.should include("-v another_var=another_value")
|
136
|
+
end
|
139
137
|
end
|
data/spec/sqlcmdtask_spec.rb
CHANGED
@@ -4,28 +4,28 @@ require 'rake/sqlcmdtask'
|
|
4
4
|
require 'tasklib_patch'
|
5
5
|
|
6
6
|
describe Albacore::SQLCmdTask, "when running" do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
before :all do
|
8
|
+
task = Albacore::SQLCmdTask.new(:sqlcmd) do |t|
|
9
|
+
@yielded_object = t
|
10
|
+
end
|
11
|
+
task.extend(TasklibPatch)
|
12
|
+
Rake::Task[:sqlcmd].invoke
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should yield the sqlcmd api" do
|
16
|
+
@yielded_object.kind_of?(SQLCmd).should == true
|
17
|
+
end
|
18
18
|
end
|
19
19
|
|
20
20
|
describe Albacore::SQLCmdTask, "when execution fails" do
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
21
|
+
before :all do
|
22
|
+
@task = Albacore::SQLCmdTask.new(:failingtask)
|
23
|
+
@task.extend(TasklibPatch)
|
24
|
+
@task.fail
|
25
|
+
Rake::Task["failingtask"].invoke
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should fail the rake task" do
|
29
|
+
@task.task_failed.should be_true
|
30
|
+
end
|
31
31
|
end
|
data/spec/ssh_spec.rb
CHANGED
@@ -2,47 +2,46 @@ require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
|
|
2
2
|
require 'albacore/ssh'
|
3
3
|
|
4
4
|
describe Ssh, 'when executing a command over ssh' do
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
before :each do
|
6
|
+
@sshstub = Net::SSH::Connection::Session.stub_instance(:exec! => nil)
|
7
|
+
Net::SSH.stub_method(:start, &lambda{}).yields(@sshstub)
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
9
|
+
@ssh = Ssh.new
|
10
|
+
@ssh.server="server"
|
11
|
+
@ssh.username="user"
|
12
|
+
@ssh.password="secret"
|
13
|
+
@ssh.commands "execute THIS!"
|
14
|
+
|
15
|
+
@ssh.execute
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should attempt to open a connection with the supplied connection information" do
|
19
|
+
Net::SSH.should have_received(:start)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should execute the command" do
|
23
|
+
@sshstub.should have_received(:exec!)
|
24
|
+
end
|
25
25
|
end
|
26
26
|
|
27
27
|
describe Ssh, "when executing multiple commands over ssh" do
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
before :each do
|
29
|
+
@sshstub = Net::SSH::Connection::Session.stub_instance(:exec! => nil)
|
30
|
+
Net::SSH.stub_method(:start, &lambda{}).yields(@sshstub)
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
32
|
+
@ssh = Ssh.new
|
33
|
+
@ssh.server="server"
|
34
|
+
@ssh.username="user"
|
35
|
+
@ssh.password="secret"
|
36
|
+
|
37
|
+
@ssh.commands "execute THIS!", "another execution"
|
38
|
+
|
39
|
+
@ssh.execute
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should execute all of the specified commands" do
|
43
|
+
@sshstub.should have_received(:exec!).twice
|
44
|
+
end
|
45
|
+
|
47
46
|
end
|
48
47
|
|