lib/sibit/bestof.rb in sibit-0.19.1 vs lib/sibit/bestof.rb in sibit-0.19.2
- old
+ new
@@ -108,11 +108,11 @@
rescue Sibit::Error => e
@log.info("The API #{api.class.name} failed at #{method}(): #{e.message}")
end
end
if results.empty?
- raise Sibit::Error, "No APIs out of #{@api.length} managed to succeed at #{method}(): \
-#{@api.map { |a| a.class.name }.join(', ')}"
+ raise Sibit::Error, "No APIs out of #{@list.length} managed to succeed at #{method}(): \
+#{@list.map { |a| a.class.name }.join(', ')}"
end
results.group_by(&:to_s).values.max_by(&:size)[0]
end
end
end