test/stripe/util_test.rb in stripe-1.55.0 vs test/stripe/util_test.rb in stripe-1.55.1

- old
+ new

@@ -139,7 +139,11 @@ should "#convert_to_stripe_object should marshal arrays" do obj = Util.convert_to_stripe_object([1, 2, 3], {}) assert_equal [1, 2, 3], obj end + + should "#array_to_hash should convert an array into a hash with integer keys" do + assert_equal({"0" => 1, "1" => 2, "2" => 3}, Util.array_to_hash([1, 2, 3])) + end end end