Sha256: 689c4efc10cf980261750439fee23cd0c306f511564e6e02170276e342e20642
Contents?: true
Size: 987 Bytes
Versions: 9
Compression:
Stored size: 987 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class StripeTest < Test::Unit::TestCase should "warn that #refresh_from is deprecated" do old_stderr = $stderr $stderr = StringIO.new begin Stripe.uri_encode({}) message = "NOTE: Stripe.uri_encode is deprecated; use " + "Stripe::Util#encode_parameters instead" assert_match Regexp.new(message), $stderr.string ensure $stderr = old_stderr 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 ensure Stripe.ca_bundle_path = old end end should "allow max_network_retries to be configured" do begin old = Stripe.max_network_retries Stripe.max_network_retries = 99 assert_equal 99, Stripe.max_network_retries ensure Stripe.max_network_retries = old end end end
Version data entries
9 entries across 9 versions & 1 rubygems