Skip to content

Commit

Permalink
Merge pull request #4 from psy1337/rpc_result_items
Browse files Browse the repository at this point in the history
Updated RPCResultItems matcher to be more robust and to work with older u
  • Loading branch information
ripienaar committed Jun 27, 2011
2 parents 33ce9b4 + 0ceebad commit 4b7ce58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mcollective/test/matchers/rpc_result_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ def matches?(actual)
@actual << result
@expected.each do |e|
if e.is_a? Hash
unless result[:data].keys.include?(e.keys)
return false
e.keys.each do |k|
unless result[:data].keys.include?(k)
return false
end
end
e.keys.each do |k|
if e[k].is_a?(String) || e[k].is_a?(Regexp)
Expand Down

0 comments on commit 4b7ce58

Please sign in to comment.