test/stripe_test.rb in stripe-1.58.0 vs test/stripe_test.rb in stripe-2.0.0
- old
+ new
@@ -32,43 +32,10 @@
ensure
Stripe.max_network_retries = old
end
end
- should "makes requests with the Stripe-Account header" do
- response = make_account(
- charges_enabled: false,
- details_submitted: false,
- email: "test+bindings@stripe.com"
- )
- Stripe.stripe_account = 'acct_1234'
-
- Stripe.expects(:execute_request).with(
- has_entry(:headers, has_entry('Stripe-Account', 'acct_1234')),
- ).returns(make_response(response))
-
- Stripe.request(:post, '/v1/account', 'sk_live12334566')
- end
-
- context "#get_uname" do
- should "run without failure" do
- # Don't actually check the result because we try a variety of different
- # strategies that will have different results depending on where this
- # test and running. We're mostly making sure that no exception is thrown.
- _ = Stripe.get_uname
- end
- end
-
- context "#get_uname_from_system" do
- should "run without failure" do
- # as above, just verify that an exception is not thrown
- _ = Stripe.get_uname_from_system
- end
- end
-
- context "#get_uname_from_system_ver" do
- should "run without failure" do
- # as above, just verify that an exception is not thrown
- _ = Stripe.get_uname_from_system_ver
- end
+ should "have default open and read timeouts" do
+ assert_equal Stripe.open_timeout, 30
+ assert_equal Stripe.read_timeout, 80
end
end