dev_commands 0.0.52 → 0.0.53
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/command.rb +1 -1
- data/spec/command_spec.rb +6 -1
- metadata +1 -1
data/lib/command.rb
CHANGED
data/spec/command_spec.rb
CHANGED
@@ -55,6 +55,8 @@ describe Command do
|
|
55
55
|
cmd[:end_time]=Time.now
|
56
56
|
expect(cmd[:end_time]).not_to eq(nil)
|
57
57
|
|
58
|
+
# summay
|
59
|
+
expect(cmd.summary.include?('ruby')).to eq(true)
|
58
60
|
end
|
59
61
|
|
60
62
|
it "should be able to write to/load from JSON" do
|
@@ -117,7 +119,10 @@ describe Command do
|
|
117
119
|
cmd.execute
|
118
120
|
expect(cmd[:exit_code]).not_to eq(0)
|
119
121
|
|
120
|
-
|
122
|
+
begin
|
123
|
+
FileUtils.rm_r("#{dir}")
|
124
|
+
rescue
|
125
|
+
end
|
121
126
|
end
|
122
127
|
|
123
128
|
it "should be able to execute an array of commands" do
|