dumbwaiter 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dumbwaiter/deployment.rb +5 -1
- data/lib/dumbwaiter/version.rb +1 -1
- data/spec/lib/dumbwaiter/deployment_spec.rb +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec68f942f090e118446193ea9e09a487b8ee9a28
|
4
|
+
data.tar.gz: 320549f6150e7669651a360e85f3c95c2cdaa09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8907d4f70064b119f597ac078ad0453ce3e2bfadec40b15062a69b254ea5d2515d3c40c4fb9b82f7988b1a30db93666ecd02079349f203c0aebd8e20b9d6dd6
|
7
|
+
data.tar.gz: f3664d5fed012c8e7dd47458713deb03fd8f4ff7f40d4ad3bcc83fba17b0bf15eee76fea70088891cb525102e1dea0d0ecf01f1104e6502818a625e2297fdf91
|
data/lib/dumbwaiter/version.rb
CHANGED
@@ -24,8 +24,22 @@ describe Dumbwaiter::Deployment do
|
|
24
24
|
its(:command_name) { should == "deplode" }
|
25
25
|
its(:status) { should == "badical" }
|
26
26
|
its(:git_ref) { should == "eh-buddy" }
|
27
|
-
its(:user_name) { should == "goose" }
|
28
27
|
its(:to_log) { should == "#{DateTime.parse("last Tuesday")} - goose - deplode - badical - eh-buddy" }
|
28
|
+
its(:user_name) { should == "goose" }
|
29
|
+
|
30
|
+
context "when the iam user arn is nil" do
|
31
|
+
let(:fake_deployment) do
|
32
|
+
double(:deployment,
|
33
|
+
created_at: "last Tuesday",
|
34
|
+
command: fake_command,
|
35
|
+
status: "badical",
|
36
|
+
custom_json: custom_json,
|
37
|
+
iam_user_arn: nil
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
its(:user_name) { should == "?" }
|
42
|
+
end
|
29
43
|
|
30
44
|
context "when custom_json is nil" do
|
31
45
|
let(:fake_deployment) do
|