test/stripe_test.rb in stripe-3.3.2 vs test/stripe_test.rb in stripe-3.4.1
- old
+ new
@@ -1,15 +1,15 @@
-require File.expand_path('../test_helper', __FILE__)
+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"
+ 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
@@ -23,10 +23,10 @@
version: "1.2.34"
)
assert_equal({
name: "MyAwesomePlugin",
url: "https://myawesomeplugin.info",
- version: "1.2.34"
+ version: "1.2.34",
}, Stripe.app_info)
ensure
Stripe.app_info = old
end
end