test/persistence_test.rb in 3scale_client-2.10.0 vs test/persistence_test.rb in 3scale_client-2.11.0
- old
+ new
@@ -3,18 +3,22 @@
require '3scale/client'
require 'mocha/setup'
if ENV['TEST_3SCALE_PROVIDER_KEY'] && ENV['TEST_3SCALE_APP_IDS'] && ENV['TEST_3SCALE_APP_KEYS']
class ThreeScale::NetHttpPersistenceTest < MiniTest::Test
+ WARN_DEPRECATED = ENV['WARN_DEPRECATED'] == '1'
+
def setup
ThreeScale::Client::HTTPClient.persistent_backend = ThreeScale::Client::HTTPClient::NetHttpPersistent
provider_key = ENV['TEST_3SCALE_PROVIDER_KEY']
@app_id = ENV['TEST_3SCALE_APP_IDS']
@app_key = ENV['TEST_3SCALE_APP_KEYS']
- @client = ThreeScale::Client.new(provider_key: provider_key, persistence: true)
+ @client = ThreeScale::Client.new(provider_key: provider_key,
+ warn_deprecated: WARN_DEPRECATED,
+ persistence: true)
if defined?(FakeWeb)
FakeWeb.allow_net_connect = true
end
end