mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-13 00:01:33 -05:00
17 lines
460 B
Ruby
17 lines
460 B
Ruby
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
|
|
end
|