test/stripe/util_test.rb in stripe-1.20.3 vs test/stripe/util_test.rb in stripe-1.20.4

- old
+ new

@@ -23,7 +23,12 @@ } symbolized = Stripe::Util.symbolize_names(start) assert_equal(finish, symbolized) end + + should "normalize_opts should reject nil keys" do + assert_raise { Stripe::Util.normalize_opts(nil) } + assert_raise { Stripe::Util.normalize_opts(:api_key => nil) } + end end end