hato-plugin-ikachan 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hato/plugin/ikachan/version.rb +1 -1
- data/lib/hato/plugin/ikachan.rb +1 -2
- data/spec/lib/hato/plugin/ikachan_spec.rb +0 -22
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce060d75ee12e9d32a8b5007fd0c68e351bbe51
|
4
|
+
data.tar.gz: f782782ac676f750921ad5c8a3b36b2a5bc5a2be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e35db7b4ebea9e0d86ad2a18f53d7b0462544109b922da4e7108892b5737369ab6a23178b2d5a50b158ea5813f37f2061007f310bebf90f924821ce028f428ce
|
7
|
+
data.tar.gz: 0352c2d078c6bd2c8bc0699589b607fae65595092ea4e20c03fe373efaa729545fc3443686707dbf0e605464e4c38257c596fb847d2246110481d6b0e7bae930
|
data/lib/hato/plugin/ikachan.rb
CHANGED
@@ -89,28 +89,6 @@ describe Hato::Plugin::Ikachan do
|
|
89
89
|
}.to raise_error(Timeout::Error)
|
90
90
|
}
|
91
91
|
end
|
92
|
-
|
93
|
-
context 'http error' do
|
94
|
-
subject {
|
95
|
-
described_class.new(
|
96
|
-
Hato::Config::Plugin.new('Ikachan') {
|
97
|
-
scheme 'example.com'
|
98
|
-
channel 'text'
|
99
|
-
}
|
100
|
-
)
|
101
|
-
}
|
102
|
-
before {
|
103
|
-
allow(subject).to receive(:send_request).and_return(
|
104
|
-
Net::HTTPServerError.new('1.1', '500', 'forbidden')
|
105
|
-
)
|
106
|
-
}
|
107
|
-
|
108
|
-
it {
|
109
|
-
expect {
|
110
|
-
subject.notify(tag: 'test', message: 'test')
|
111
|
-
}.to raise_error(Net::HTTPFatalError)
|
112
|
-
}
|
113
|
-
end
|
114
92
|
end
|
115
93
|
end
|
116
94
|
end
|