mcollective-test 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,19 @@ module MCollective
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def matches?(actual)
|
13
|
+
# Data::Result has a bug in it's method missing in < 2.2.2 and < 2.3.0
|
14
|
+
# which raised the wrong exception class should someone call for example
|
15
|
+
# #to_ary like [x].flatten does causing the tests to fail, this works
|
16
|
+
# around that bug while we fix it in core.
|
17
|
+
unless actual.is_a?(Array)
|
18
|
+
actual = [actual]
|
19
|
+
end
|
20
|
+
|
13
21
|
if actual == []
|
14
22
|
return false
|
15
23
|
end
|
16
24
|
|
17
|
-
|
25
|
+
actual.each do |result|
|
18
26
|
if result.is_a?(MCollective::RPC::Result)
|
19
27
|
result = result.results
|
20
28
|
elsif result.is_a?(MCollective::Data::Result)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcollective-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- R.I.Pienaar
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-01-
|
18
|
+
date: 2013-01-10 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|