test/stripe_test.rb in stripe-4.24.0 vs test/stripe_test.rb in stripe-5.0.0
- old
+ new
@@ -1,22 +1,9 @@
# frozen_string_literal: true
require ::File.expand_path("test_helper", __dir__)
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 app_info to be configured" do
begin
old = Stripe.app_info
Stripe.set_app_info(
"MyAwesomePlugin",