test/test_helper.rb in stripe-4.18.0 vs test/test_helper.rb in stripe-4.18.1

- old
+ new

@@ -9,14 +9,14 @@ require "stringio" require "shoulda/context" require "timecop" require "webmock/test_unit" -PROJECT_ROOT = ::File.expand_path("../../", __FILE__) +PROJECT_ROOT = ::File.expand_path("../", __dir__) -require ::File.expand_path("../test_data", __FILE__) -require ::File.expand_path("../stripe_mock", __FILE__) +require ::File.expand_path("test_data", __dir__) +require ::File.expand_path("stripe_mock", __dir__) # If changing this number, please also change it in `.travis.yml`. MOCK_MINIMUM_VERSION = "0.57.0".freeze MOCK_PORT = Stripe::StripeMock.start @@ -61,12 +61,10 @@ teardown do Stripe.api_key = nil end - private - - def stub_connect + private def stub_connect stub_request(:any, /^#{Stripe.connect_base}/).to_return(body: "{}") end end end end