We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3fd241 commit df89e28Copy full SHA for df89e28
lib/discourse_api/error.rb
@@ -34,6 +34,6 @@ class UnprocessableEntity < DiscourseError
34
class TooManyRequests < DiscourseError
35
end
36
37
- class Timeout < DiscourseError
+ class Timeout < Error
38
39
spec/discourse_api/client_spec.rb
@@ -41,6 +41,12 @@
41
expect(subject.send(:connection).options.timeout).to eq(25)
42
43
44
+
45
+ it "raises DiscourseApi::Timeout" do
46
+ stub_get("#{host}/t/1.json").to_timeout
47
48
+ expect { subject.topic(1) }.to raise_error(DiscourseApi::Timeout)
49
+ end
50
51
52
describe "#api_key" do
0 commit comments