lib/providers/mock/mock.rb in lorj-1.0.1 vs lib/providers/mock/mock.rb in lorj-1.0.2

- old
+ new

@@ -40,11 +40,11 @@ @@data[sObjectType] = [] unless @@data.key?(sObjectType) array = @@data[sObjectType] - array.each do | value | + array.each do |value| fail if value.key?(result[:name]) end array << result result[:id] = array.length - 1 @@ -76,12 +76,12 @@ return [] unless @@data.key?(sObjectType) result = [] - @@data[sObjectType].each do | value | + @@data[sObjectType].each do |value| elem = value - sQuery.each do | query_key, query_value | + sQuery.each do |query_key, query_value| elem = nil if !value.key?(query_key) || value[query_key] != query_value end result << elem if elem end result