serverspec-extra-types 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/lib/serverspec_extra_types/helpers/properties.rb +2 -0
- data/lib/serverspec_extra_types/matchers/be_a_manager_node.rb +2 -0
- data/lib/serverspec_extra_types/matchers/be_a_worker_node.rb +2 -0
- data/lib/serverspec_extra_types/matchers/be_active.rb +2 -0
- data/lib/serverspec_extra_types/matchers/configure_queue.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_count.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_domain_name.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_engine_version.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_environment_variable.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_ha_mode.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_ha_nodes.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_ha_sync_mode.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_host.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_hostname.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_image.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_image_sha.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_label.rb +4 -2
- data/lib/serverspec_extra_types/matchers/have_mount.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_network.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_placement_constraint.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_replica_count.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_restart_limit.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_restart_policy.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_user.rb +2 -0
- data/lib/serverspec_extra_types/matchers/have_vhost.rb +2 -0
- data/lib/serverspec_extra_types/matchers/http_1xx.rb +109 -0
- data/lib/serverspec_extra_types/matchers/http_2xx.rb +361 -0
- data/lib/serverspec_extra_types/matchers/http_3xx.rb +289 -0
- data/lib/serverspec_extra_types/matchers/http_4xx.rb +1081 -0
- data/lib/serverspec_extra_types/matchers/http_5xx.rb +433 -0
- data/lib/serverspec_extra_types/matchers/include_regex.rb +2 -0
- data/lib/serverspec_extra_types/matchers/map_port.rb +2 -0
- data/lib/serverspec_extra_types/matchers/mirror_all.rb +2 -0
- data/lib/serverspec_extra_types/matchers/publish_all_ports.rb +2 -0
- data/lib/serverspec_extra_types/matchers/read_from_queue.rb +2 -0
- data/lib/serverspec_extra_types/matchers/url_matchers.rb +7 -0
- data/lib/serverspec_extra_types/matchers/write_to_queue.rb +2 -0
- data/lib/serverspec_extra_types/matchers.rb +4 -0
- data/lib/serverspec_extra_types/types/api_base.rb +2 -0
- data/lib/serverspec_extra_types/types/consul_base.rb +2 -0
- data/lib/serverspec_extra_types/types/consul_node.rb +2 -0
- data/lib/serverspec_extra_types/types/consul_node_list.rb +2 -0
- data/lib/serverspec_extra_types/types/consul_service.rb +2 -0
- data/lib/serverspec_extra_types/types/consul_service_list.rb +2 -0
- data/lib/serverspec_extra_types/types/curl.rb +69 -0
- data/lib/serverspec_extra_types/types/docker_container.rb +2 -0
- data/lib/serverspec_extra_types/types/docker_network.rb +2 -2
- data/lib/serverspec_extra_types/types/docker_node.rb +2 -0
- data/lib/serverspec_extra_types/types/docker_service.rb +2 -0
- data/lib/serverspec_extra_types/types/rabbitmq_base.rb +2 -0
- data/lib/serverspec_extra_types/types/rabbitmq_node_list.rb +2 -0
- data/lib/serverspec_extra_types/types/rabbitmq_user_permission.rb +2 -0
- data/lib/serverspec_extra_types/types/rabbitmq_vhost_list.rb +2 -0
- data/lib/serverspec_extra_types/types/rabbitmq_vhost_policy.rb +2 -0
- data/lib/serverspec_extra_types/types.rb +4 -1
- data/lib/serverspec_extra_types/version.rb +3 -1
- data/lib/serverspec_extra_types.rb +2 -0
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc0937c3203bf7d4ef0ba9e666ed13f66998567e50d6449cb5d1a0a8edcabcb
|
4
|
+
data.tar.gz: 031ef294d6cde551b72de443877615f802329fbbeb1194975fd60e96c2e19df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f0a596c6c36fed0beeb8ca104af3849e31f997e1470623b438ba5c52272030024e2075bc06e14d61cb038b8d5059631b173b0effdda9f8210e6f208546f6f17
|
7
|
+
data.tar.gz: d68b548f93c620772276064208e212e014e5bdc3823be40ebeca5a8266544229bcb4d55bae140fb1500cc7c5f0c3d4fd5f72e12b678100129035c2676c4f9c4e
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -0,0 +1,109 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec::Matchers.define :respond_with_100 do
|
4
|
+
match do |actual|
|
5
|
+
actual.response_code == 100
|
6
|
+
end
|
7
|
+
failure_message do |actual|
|
8
|
+
"expected #{actual} to respond with 100 was #{actual.response_code}"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
RSpec::Matchers.define :respond_with_CONTINUE do
|
13
|
+
match do |actual|
|
14
|
+
actual.response_code == 100
|
15
|
+
end
|
16
|
+
failure_message do |actual|
|
17
|
+
"expected #{actual} to respond with 100 was #{actual.response_code}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
RSpec::Matchers.define :respond_with_continue do
|
22
|
+
match do |actual|
|
23
|
+
actual.response_code == 100
|
24
|
+
end
|
25
|
+
failure_message do |actual|
|
26
|
+
"expected #{actual} to respond with 100 was #{actual.response_code}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
RSpec::Matchers.define :be_continue do
|
31
|
+
match do |actual|
|
32
|
+
actual.response_code == 100
|
33
|
+
end
|
34
|
+
failure_message do |actual|
|
35
|
+
"expected #{actual} to respond with 100 was #{actual.response_code}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
RSpec::Matchers.define :respond_with_101 do
|
40
|
+
match do |actual|
|
41
|
+
actual.response_code == 101
|
42
|
+
end
|
43
|
+
failure_message do |actual|
|
44
|
+
"expected #{actual} to respond with 101 was #{actual.response_code}"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
RSpec::Matchers.define :respond_with_SWITCHING_PROTOCOLS do
|
49
|
+
match do |actual|
|
50
|
+
actual.response_code == 101
|
51
|
+
end
|
52
|
+
failure_message do |actual|
|
53
|
+
"expected #{actual} to respond with 101 was #{actual.response_code}"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
RSpec::Matchers.define :respond_with_switching_protocols do
|
58
|
+
match do |actual|
|
59
|
+
actual.response_code == 101
|
60
|
+
end
|
61
|
+
failure_message do |actual|
|
62
|
+
"expected #{actual} to respond with 101 was #{actual.response_code}"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
RSpec::Matchers.define :be_switching_protocols do
|
67
|
+
match do |actual|
|
68
|
+
actual.response_code == 101
|
69
|
+
end
|
70
|
+
failure_message do |actual|
|
71
|
+
"expected #{actual} to respond with 101 was #{actual.response_code}"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
RSpec::Matchers.define :respond_with_102 do
|
76
|
+
match do |actual|
|
77
|
+
actual.response_code == 102
|
78
|
+
end
|
79
|
+
failure_message do |actual|
|
80
|
+
"expected #{actual} to respond with 102 was #{actual.response_code}"
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
RSpec::Matchers.define :respond_with_PROCESSING do
|
85
|
+
match do |actual|
|
86
|
+
actual.response_code == 102
|
87
|
+
end
|
88
|
+
failure_message do |actual|
|
89
|
+
"expected #{actual} to respond with 102 was #{actual.response_code}"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
RSpec::Matchers.define :respond_with_processing do
|
94
|
+
match do |actual|
|
95
|
+
actual.response_code == 102
|
96
|
+
end
|
97
|
+
failure_message do |actual|
|
98
|
+
"expected #{actual} to respond with 102 was #{actual.response_code}"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
RSpec::Matchers.define :be_processing do
|
103
|
+
match do |actual|
|
104
|
+
actual.response_code == 102
|
105
|
+
end
|
106
|
+
failure_message do |actual|
|
107
|
+
"expected #{actual} to respond with 102 was #{actual.response_code}"
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,361 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec::Matchers.define :respond_with_200 do
|
4
|
+
match do |actual|
|
5
|
+
actual.response_code == 200
|
6
|
+
end
|
7
|
+
failure_message do |actual|
|
8
|
+
"expected #{actual} to respond with 200 was #{actual.response_code}"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
RSpec::Matchers.define :respond_with_OK do
|
13
|
+
match do |actual|
|
14
|
+
actual.response_code == 200
|
15
|
+
end
|
16
|
+
failure_message do |actual|
|
17
|
+
"expected #{actual} to respond with 200 was #{actual.response_code}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
RSpec::Matchers.define :respond_with_ok do
|
22
|
+
match do |actual|
|
23
|
+
actual.response_code == 200
|
24
|
+
end
|
25
|
+
failure_message do |actual|
|
26
|
+
"expected #{actual} to respond with 200 was #{actual.response_code}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
RSpec::Matchers.define :be_ok do
|
31
|
+
match do |actual|
|
32
|
+
actual.response_code == 200
|
33
|
+
end
|
34
|
+
failure_message do |actual|
|
35
|
+
"expected #{actual} to respond with 200 was #{actual.response_code}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
RSpec::Matchers.define :respond_with_201 do
|
40
|
+
match do |actual|
|
41
|
+
actual.response_code == 201
|
42
|
+
end
|
43
|
+
failure_message do |actual|
|
44
|
+
"expected #{actual} to respond with 201 was #{actual.response_code}"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
RSpec::Matchers.define :respond_with_CREATED do
|
49
|
+
match do |actual|
|
50
|
+
actual.response_code == 201
|
51
|
+
end
|
52
|
+
failure_message do |actual|
|
53
|
+
"expected #{actual} to respond with 201 was #{actual.response_code}"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
RSpec::Matchers.define :respond_with_created do
|
58
|
+
match do |actual|
|
59
|
+
actual.response_code == 201
|
60
|
+
end
|
61
|
+
failure_message do |actual|
|
62
|
+
"expected #{actual} to respond with 201 was #{actual.response_code}"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
RSpec::Matchers.define :be_created do
|
67
|
+
match do |actual|
|
68
|
+
actual.response_code == 201
|
69
|
+
end
|
70
|
+
failure_message do |actual|
|
71
|
+
"expected #{actual} to respond with 201 was #{actual.response_code}"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
RSpec::Matchers.define :respond_with_202 do
|
76
|
+
match do |actual|
|
77
|
+
actual.response_code == 202
|
78
|
+
end
|
79
|
+
failure_message do |actual|
|
80
|
+
"expected #{actual} to respond with 202 was #{actual.response_code}"
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
RSpec::Matchers.define :respond_with_ACCEPTED do
|
85
|
+
match do |actual|
|
86
|
+
actual.response_code == 202
|
87
|
+
end
|
88
|
+
failure_message do |actual|
|
89
|
+
"expected #{actual} to respond with 202 was #{actual.response_code}"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
RSpec::Matchers.define :respond_with_accepted do
|
94
|
+
match do |actual|
|
95
|
+
actual.response_code == 202
|
96
|
+
end
|
97
|
+
failure_message do |actual|
|
98
|
+
"expected #{actual} to respond with 202 was #{actual.response_code}"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
RSpec::Matchers.define :be_accepted do
|
103
|
+
match do |actual|
|
104
|
+
actual.response_code == 202
|
105
|
+
end
|
106
|
+
failure_message do |actual|
|
107
|
+
"expected #{actual} to respond with 202 was #{actual.response_code}"
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
RSpec::Matchers.define :respond_with_203 do
|
112
|
+
match do |actual|
|
113
|
+
actual.response_code == 203
|
114
|
+
end
|
115
|
+
failure_message do |actual|
|
116
|
+
"expected #{actual} to respond with 203 was #{actual.response_code}"
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
RSpec::Matchers.define :respond_with_NON_AUTHORITATIVE_INFORMATION do
|
121
|
+
match do |actual|
|
122
|
+
actual.response_code == 203
|
123
|
+
end
|
124
|
+
failure_message do |actual|
|
125
|
+
"expected #{actual} to respond with 203 was #{actual.response_code}"
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
RSpec::Matchers.define :respond_with_non_authoritative_information do
|
130
|
+
match do |actual|
|
131
|
+
actual.response_code == 203
|
132
|
+
end
|
133
|
+
failure_message do |actual|
|
134
|
+
"expected #{actual} to respond with 203 was #{actual.response_code}"
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
RSpec::Matchers.define :be_non_authoritative_information do
|
139
|
+
match do |actual|
|
140
|
+
actual.response_code == 203
|
141
|
+
end
|
142
|
+
failure_message do |actual|
|
143
|
+
"expected #{actual} to respond with 203 was #{actual.response_code}"
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
RSpec::Matchers.define :respond_with_204 do
|
148
|
+
match do |actual|
|
149
|
+
actual.response_code == 204
|
150
|
+
end
|
151
|
+
failure_message do |actual|
|
152
|
+
"expected #{actual} to respond with 204 was #{actual.response_code}"
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
RSpec::Matchers.define :respond_with_NO_CONTENT do
|
157
|
+
match do |actual|
|
158
|
+
actual.response_code == 204
|
159
|
+
end
|
160
|
+
failure_message do |actual|
|
161
|
+
"expected #{actual} to respond with 204 was #{actual.response_code}"
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
RSpec::Matchers.define :respond_with_no_content do
|
166
|
+
match do |actual|
|
167
|
+
actual.response_code == 204
|
168
|
+
end
|
169
|
+
failure_message do |actual|
|
170
|
+
"expected #{actual} to respond with 204 was #{actual.response_code}"
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
RSpec::Matchers.define :be_no_content do
|
175
|
+
match do |actual|
|
176
|
+
actual.response_code == 204
|
177
|
+
end
|
178
|
+
failure_message do |actual|
|
179
|
+
"expected #{actual} to respond with 204 was #{actual.response_code}"
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
RSpec::Matchers.define :respond_with_205 do
|
184
|
+
match do |actual|
|
185
|
+
actual.response_code == 205
|
186
|
+
end
|
187
|
+
failure_message do |actual|
|
188
|
+
"expected #{actual} to respond with 205 was #{actual.response_code}"
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
RSpec::Matchers.define :respond_with_RESET_CONTENT do
|
193
|
+
match do |actual|
|
194
|
+
actual.response_code == 205
|
195
|
+
end
|
196
|
+
failure_message do |actual|
|
197
|
+
"expected #{actual} to respond with 205 was #{actual.response_code}"
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
RSpec::Matchers.define :respond_with_reset_content do
|
202
|
+
match do |actual|
|
203
|
+
actual.response_code == 205
|
204
|
+
end
|
205
|
+
failure_message do |actual|
|
206
|
+
"expected #{actual} to respond with 205 was #{actual.response_code}"
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
RSpec::Matchers.define :be_reset_content do
|
211
|
+
match do |actual|
|
212
|
+
actual.response_code == 205
|
213
|
+
end
|
214
|
+
failure_message do |actual|
|
215
|
+
"expected #{actual} to respond with 205 was #{actual.response_code}"
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
RSpec::Matchers.define :respond_with_206 do
|
220
|
+
match do |actual|
|
221
|
+
actual.response_code == 206
|
222
|
+
end
|
223
|
+
failure_message do |actual|
|
224
|
+
"expected #{actual} to respond with 206 was #{actual.response_code}"
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
RSpec::Matchers.define :respond_with_PARTIAL_CONTENT do
|
229
|
+
match do |actual|
|
230
|
+
actual.response_code == 206
|
231
|
+
end
|
232
|
+
failure_message do |actual|
|
233
|
+
"expected #{actual} to respond with 206 was #{actual.response_code}"
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
RSpec::Matchers.define :respond_with_partial_content do
|
238
|
+
match do |actual|
|
239
|
+
actual.response_code == 206
|
240
|
+
end
|
241
|
+
failure_message do |actual|
|
242
|
+
"expected #{actual} to respond with 206 was #{actual.response_code}"
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
RSpec::Matchers.define :be_partial_content do
|
247
|
+
match do |actual|
|
248
|
+
actual.response_code == 206
|
249
|
+
end
|
250
|
+
failure_message do |actual|
|
251
|
+
"expected #{actual} to respond with 206 was #{actual.response_code}"
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
RSpec::Matchers.define :respond_with_207 do
|
256
|
+
match do |actual|
|
257
|
+
actual.response_code == 207
|
258
|
+
end
|
259
|
+
failure_message do |actual|
|
260
|
+
"expected #{actual} to respond with 207 was #{actual.response_code}"
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
RSpec::Matchers.define :respond_with_MULTI_STATUS do
|
265
|
+
match do |actual|
|
266
|
+
actual.response_code == 207
|
267
|
+
end
|
268
|
+
failure_message do |actual|
|
269
|
+
"expected #{actual} to respond with 207 was #{actual.response_code}"
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
RSpec::Matchers.define :respond_with_multi_status do
|
274
|
+
match do |actual|
|
275
|
+
actual.response_code == 207
|
276
|
+
end
|
277
|
+
failure_message do |actual|
|
278
|
+
"expected #{actual} to respond with 207 was #{actual.response_code}"
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
RSpec::Matchers.define :be_multi_status do
|
283
|
+
match do |actual|
|
284
|
+
actual.response_code == 207
|
285
|
+
end
|
286
|
+
failure_message do |actual|
|
287
|
+
"expected #{actual} to respond with 207 was #{actual.response_code}"
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
RSpec::Matchers.define :respond_with_208 do
|
292
|
+
match do |actual|
|
293
|
+
actual.response_code == 208
|
294
|
+
end
|
295
|
+
failure_message do |actual|
|
296
|
+
"expected #{actual} to respond with 208 was #{actual.response_code}"
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
RSpec::Matchers.define :respond_with_ALREADY_REPORTED do
|
301
|
+
match do |actual|
|
302
|
+
actual.response_code == 208
|
303
|
+
end
|
304
|
+
failure_message do |actual|
|
305
|
+
"expected #{actual} to respond with 208 was #{actual.response_code}"
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
RSpec::Matchers.define :respond_with_already_reported do
|
310
|
+
match do |actual|
|
311
|
+
actual.response_code == 208
|
312
|
+
end
|
313
|
+
failure_message do |actual|
|
314
|
+
"expected #{actual} to respond with 208 was #{actual.response_code}"
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
RSpec::Matchers.define :be_already_reported do
|
319
|
+
match do |actual|
|
320
|
+
actual.response_code == 208
|
321
|
+
end
|
322
|
+
failure_message do |actual|
|
323
|
+
"expected #{actual} to respond with 208 was #{actual.response_code}"
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
RSpec::Matchers.define :respond_with_226 do
|
328
|
+
match do |actual|
|
329
|
+
actual.response_code == 226
|
330
|
+
end
|
331
|
+
failure_message do |actual|
|
332
|
+
"expected #{actual} to respond with 226 was #{actual.response_code}"
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
RSpec::Matchers.define :respond_with_IM_USED do
|
337
|
+
match do |actual|
|
338
|
+
actual.response_code == 226
|
339
|
+
end
|
340
|
+
failure_message do |actual|
|
341
|
+
"expected #{actual} to respond with 226 was #{actual.response_code}"
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
RSpec::Matchers.define :respond_with_im_used do
|
346
|
+
match do |actual|
|
347
|
+
actual.response_code == 226
|
348
|
+
end
|
349
|
+
failure_message do |actual|
|
350
|
+
"expected #{actual} to respond with 226 was #{actual.response_code}"
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
RSpec::Matchers.define :be_im_used do
|
355
|
+
match do |actual|
|
356
|
+
actual.response_code == 226
|
357
|
+
end
|
358
|
+
failure_message do |actual|
|
359
|
+
"expected #{actual} to respond with 226 was #{actual.response_code}"
|
360
|
+
end
|
361
|
+
end
|