test/stripe_test.rb in stripe-2.3.0 vs test/stripe_test.rb in stripe-2.4.0

- old
+ new

@@ -12,9 +12,27 @@ ensure $stderr = old_stderr end end + should "allow app_info to be configured" do + begin + old = Stripe.app_info + Stripe.set_app_info( + "MyAwesomePlugin", + url: "https://myawesomeplugin.info", + version: "1.2.34" + ) + assert_equal({ + name: "MyAwesomePlugin", + url: "https://myawesomeplugin.info", + version: "1.2.34" + }, Stripe.app_info) + ensure + Stripe.app_info = old + end + end + should "allow ca_bundle_path to be configured" do begin old = Stripe.ca_bundle_path Stripe.ca_bundle_path = "path/to/ca/bundle" assert_equal "path/to/ca/bundle", Stripe.ca_bundle_path