lib/upperkut/util.rb in upperkut-0.8.1 vs lib/upperkut/util.rb in upperkut-1.0.0.rc

- old
+ new

@@ -25,10 +25,10 @@ items = [items] unless items.is_a?(Array) items.map do |item| next item if item.is_a?(Item) - Item.new(item) + Item.new(body: item) end end def decode_json_items(items) items.each_with_object([]) do |item, memo|