There was an error while loading. Please reload this page.
1 parent d2819c6 commit b087327Copy full SHA for b087327
spec/core/middleware/request/retry_spec.rb
@@ -37,7 +37,7 @@ def runtime
37
end
38
39
it "should print to logger" do
40
- expect(client.config.logger).to receive(:warn).at_least(:once)
+ expect(client.config.logger).to receive(:warn).exactly(4)
41
client.connection.get("blergh")
42
43
spec/core/spec_helper.rb
@@ -80,6 +80,8 @@ def options
80
config.url = "https://my.zendesk.com/api/v2"
81
82
83
+ config.logger = Logger.new("/dev/null")
84
+
85
config.retry = true
86
87
0 commit comments