deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: CIMI: Fixed compare_values() method in tests to use 'key' instead of 'name'
Date Mon, 19 Nov 2012 11:44:08 GMT
Updated Branches:
  refs/heads/master bc54202e5 -> cdff6ca3c


CIMI: Fixed compare_values() method in tests to use 'key' instead of 'name'


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/cdff6ca3
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/cdff6ca3
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/cdff6ca3

Branch: refs/heads/master
Commit: cdff6ca3cb500f0f54c574df60497ec011c58edb
Parents: bc54202
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Nov 19 12:43:12 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Nov 19 12:43:12 2012 +0100

----------------------------------------------------------------------
 server/tests/cimi/spec_helper.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/cdff6ca3/server/tests/cimi/spec_helper.rb
----------------------------------------------------------------------
diff --git a/server/tests/cimi/spec_helper.rb b/server/tests/cimi/spec_helper.rb
index e86eaee..6ec7b0d 100644
--- a/server/tests/cimi/spec_helper.rb
+++ b/server/tests/cimi/spec_helper.rb
@@ -66,8 +66,8 @@ class HashCmp
         # and therefore not ordered, even though XmlSimple
         # represents them as an array; since that array can be generated
         # from a hash, in Ruby 1.8 the order of the array is random
-        exp = exp.sort! { |item1, item2| item1["name"] <=> item2["name"] }
-        act = act.sort! { |item1, item2| item1["name"] <=> item2["name"] }
+        exp = exp.sort! { |item1, item2| item1["key"] <=> item2["key"] }
+        act = act.sort! { |item1, item2| item1["key"] <=> item2["key"] }
       end
       0.upto(exp.size-1) do |i|
         compare_values(exp[i], act[i], path + [ "#{name}[#{i}]" ])


Mime
View raw message