rspec-expectations 2.6.0 → 2.7.0.rc1
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.
- data/README.md +2 -2
- data/features/built_in_matchers/README.md +7 -5
- data/features/built_in_matchers/be.feature +1 -1
- data/features/built_in_matchers/cover.feature +1 -1
- data/features/built_in_matchers/expect_error.feature +59 -26
- data/features/built_in_matchers/have.feature +2 -2
- data/features/built_in_matchers/predicates.feature +1 -1
- data/features/step_definitions/additional_cli_steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/rspec/expectations.rb +0 -2
- data/lib/rspec/expectations/deprecation.rb +6 -4
- data/lib/rspec/expectations/errors.rb +4 -7
- data/lib/rspec/expectations/extensions.rb +1 -0
- data/lib/rspec/expectations/extensions/array.rb +2 -0
- data/lib/rspec/expectations/extensions/kernel.rb +18 -44
- data/lib/rspec/expectations/{backward_compatibility.rb → extensions/object.rb} +5 -3
- data/lib/rspec/expectations/fail_with.rb +8 -5
- data/lib/rspec/expectations/version.rb +5 -4
- data/lib/rspec/matchers.rb +77 -73
- data/lib/rspec/matchers/be.rb +42 -51
- data/lib/rspec/matchers/be_within.rb +1 -1
- data/lib/rspec/matchers/change.rb +5 -13
- data/lib/rspec/matchers/dsl.rb +2 -1
- data/lib/rspec/matchers/eq.rb +3 -3
- data/lib/rspec/matchers/extensions/{instance_exec.rb → instance_eval_with_args.rb} +15 -7
- data/lib/rspec/matchers/has.rb +11 -6
- data/lib/rspec/matchers/have.rb +36 -19
- data/lib/rspec/matchers/match_array.rb +1 -1
- data/lib/rspec/matchers/matcher.rb +5 -5
- data/spec/rspec/matchers/change_spec.rb +38 -0
- data/spec/rspec/matchers/description_generation_spec.rb +32 -32
- data/spec/rspec/matchers/eq_spec.rb +2 -2
- data/spec/rspec/matchers/has_spec.rb +33 -1
- data/spec/rspec/matchers/have_spec.rb +64 -7
- data/spec/rspec/matchers/match_array_spec.rb +0 -3
- data/spec/rspec/matchers/operator_matcher_spec.rb +10 -4
- data/spec/rspec/matchers/raise_error_spec.rb +6 -6
- data/spec/support/classes.rb +21 -10
- metadata +51 -62
- data/.document +0 -5
- data/.gitignore +0 -10
- data/.travis.yml +0 -7
- data/Gemfile +0 -40
- data/Guardfile +0 -5
- data/License.txt +0 -22
- data/Rakefile +0 -81
- data/cucumber.yml +0 -10
- data/features/.nav +0 -29
- data/features/Changelog.md +0 -101
- data/rspec-expectations.gemspec +0 -27
- data/specs.watchr +0 -57
@@ -23,6 +23,7 @@ describe "have matcher" do
|
|
23
23
|
(1..n).each do |number|
|
24
24
|
owner.add_to_collection_with_length_method(number)
|
25
25
|
owner.add_to_collection_with_size_method(number)
|
26
|
+
owner.add_to_collection_with_count_method(number)
|
26
27
|
end
|
27
28
|
owner
|
28
29
|
end
|
@@ -33,12 +34,21 @@ describe "have matcher" do
|
|
33
34
|
owner = create_collection_owner_with(3)
|
34
35
|
owner.should have(3).items_in_collection_with_length_method
|
35
36
|
owner.should have(3).items_in_collection_with_size_method
|
37
|
+
owner.should have(3).items_in_collection_with_count_method
|
36
38
|
end
|
37
39
|
|
38
40
|
it "converts :no to 0" do
|
39
41
|
owner = create_collection_owner_with(0)
|
40
42
|
owner.should have(:no).items_in_collection_with_length_method
|
41
43
|
owner.should have(:no).items_in_collection_with_size_method
|
44
|
+
owner.should have(:no).items_in_collection_with_count_method
|
45
|
+
end
|
46
|
+
|
47
|
+
it "converts a String argument to Integer" do
|
48
|
+
owner = create_collection_owner_with(3)
|
49
|
+
owner.should have('3').items_in_collection_with_length_method
|
50
|
+
owner.should have('3').items_in_collection_with_size_method
|
51
|
+
owner.should have('3').items_in_collection_with_count_method
|
42
52
|
end
|
43
53
|
|
44
54
|
it "fails if target has a collection of items with < n members" do
|
@@ -49,6 +59,9 @@ describe "have matcher" do
|
|
49
59
|
lambda {
|
50
60
|
owner.should have(4).items_in_collection_with_size_method
|
51
61
|
}.should fail_with("expected 4 items_in_collection_with_size_method, got 3")
|
62
|
+
lambda {
|
63
|
+
owner.should have(4).items_in_collection_with_count_method
|
64
|
+
}.should fail_with("expected 4 items_in_collection_with_count_method, got 3")
|
52
65
|
end
|
53
66
|
|
54
67
|
it "fails if target has a collection of items with > n members" do
|
@@ -59,6 +72,9 @@ describe "have matcher" do
|
|
59
72
|
lambda {
|
60
73
|
owner.should have(2).items_in_collection_with_size_method
|
61
74
|
}.should fail_with("expected 2 items_in_collection_with_size_method, got 3")
|
75
|
+
lambda {
|
76
|
+
owner.should have(2).items_in_collection_with_count_method
|
77
|
+
}.should fail_with("expected 2 items_in_collection_with_count_method, got 3")
|
62
78
|
end
|
63
79
|
end
|
64
80
|
|
@@ -122,7 +138,7 @@ describe "have matcher" do
|
|
122
138
|
end.new
|
123
139
|
lambda do
|
124
140
|
owner.should have(3).items
|
125
|
-
end.should raise_error("expected items to be a collection but it does not respond to #length or #
|
141
|
+
end.should raise_error("expected items to be a collection but it does not respond to #length, #size or #count")
|
126
142
|
end
|
127
143
|
end
|
128
144
|
|
@@ -132,12 +148,14 @@ describe "have matcher" do
|
|
132
148
|
owner = create_collection_owner_with(3)
|
133
149
|
owner.should_not have(4).items_in_collection_with_length_method
|
134
150
|
owner.should_not have(4).items_in_collection_with_size_method
|
151
|
+
owner.should_not have(4).items_in_collection_with_count_method
|
135
152
|
end
|
136
153
|
|
137
154
|
it "passes if target has a collection of items with > n members" do
|
138
155
|
owner = create_collection_owner_with(3)
|
139
156
|
owner.should_not have(2).items_in_collection_with_length_method
|
140
157
|
owner.should_not have(2).items_in_collection_with_size_method
|
158
|
+
owner.should_not have(2).items_in_collection_with_count_method
|
141
159
|
end
|
142
160
|
|
143
161
|
it "fails if target has a collection of items with n members" do
|
@@ -148,6 +166,9 @@ describe "have matcher" do
|
|
148
166
|
lambda {
|
149
167
|
owner.should_not have(3).items_in_collection_with_size_method
|
150
168
|
}.should fail_with("expected target not to have 3 items_in_collection_with_size_method, got 3")
|
169
|
+
lambda {
|
170
|
+
owner.should_not have(3).items_in_collection_with_count_method
|
171
|
+
}.should fail_with("expected target not to have 3 items_in_collection_with_count_method, got 3")
|
151
172
|
end
|
152
173
|
end
|
153
174
|
|
@@ -157,12 +178,14 @@ describe "have matcher" do
|
|
157
178
|
owner = create_collection_owner_with(3)
|
158
179
|
owner.should have_exactly(3).items_in_collection_with_length_method
|
159
180
|
owner.should have_exactly(3).items_in_collection_with_size_method
|
181
|
+
owner.should have_exactly(3).items_in_collection_with_count_method
|
160
182
|
end
|
161
183
|
|
162
184
|
it "converts :no to 0" do
|
163
185
|
owner = create_collection_owner_with(0)
|
164
186
|
owner.should have_exactly(:no).items_in_collection_with_length_method
|
165
187
|
owner.should have_exactly(:no).items_in_collection_with_size_method
|
188
|
+
owner.should have_exactly(:no).items_in_collection_with_count_method
|
166
189
|
end
|
167
190
|
|
168
191
|
it "fails if target has a collection of items with < n members" do
|
@@ -173,6 +196,9 @@ describe "have matcher" do
|
|
173
196
|
lambda {
|
174
197
|
owner.should have_exactly(4).items_in_collection_with_size_method
|
175
198
|
}.should fail_with("expected 4 items_in_collection_with_size_method, got 3")
|
199
|
+
lambda {
|
200
|
+
owner.should have_exactly(4).items_in_collection_with_count_method
|
201
|
+
}.should fail_with("expected 4 items_in_collection_with_count_method, got 3")
|
176
202
|
end
|
177
203
|
|
178
204
|
it "fails if target has a collection of items with > n members" do
|
@@ -183,6 +209,9 @@ describe "have matcher" do
|
|
183
209
|
lambda {
|
184
210
|
owner.should have_exactly(2).items_in_collection_with_size_method
|
185
211
|
}.should fail_with("expected 2 items_in_collection_with_size_method, got 3")
|
212
|
+
lambda {
|
213
|
+
owner.should have_exactly(2).items_in_collection_with_count_method
|
214
|
+
}.should fail_with("expected 2 items_in_collection_with_count_method, got 3")
|
186
215
|
end
|
187
216
|
end
|
188
217
|
|
@@ -192,12 +221,14 @@ describe "have matcher" do
|
|
192
221
|
owner = create_collection_owner_with(3)
|
193
222
|
owner.should have_at_least(3).items_in_collection_with_length_method
|
194
223
|
owner.should have_at_least(3).items_in_collection_with_size_method
|
224
|
+
owner.should have_at_least(3).items_in_collection_with_count_method
|
195
225
|
end
|
196
226
|
|
197
227
|
it "passes if target has a collection of items with > n members" do
|
198
228
|
owner = create_collection_owner_with(3)
|
199
229
|
owner.should have_at_least(2).items_in_collection_with_length_method
|
200
230
|
owner.should have_at_least(2).items_in_collection_with_size_method
|
231
|
+
owner.should have_at_least(2).items_in_collection_with_count_method
|
201
232
|
end
|
202
233
|
|
203
234
|
it "fails if target has a collection of items with < n members" do
|
@@ -208,6 +239,9 @@ describe "have matcher" do
|
|
208
239
|
lambda {
|
209
240
|
owner.should have_at_least(4).items_in_collection_with_size_method
|
210
241
|
}.should fail_with("expected at least 4 items_in_collection_with_size_method, got 3")
|
242
|
+
lambda {
|
243
|
+
owner.should have_at_least(4).items_in_collection_with_count_method
|
244
|
+
}.should fail_with("expected at least 4 items_in_collection_with_count_method, got 3")
|
211
245
|
end
|
212
246
|
|
213
247
|
it "provides educational negative failure messages" do
|
@@ -215,13 +249,15 @@ describe "have matcher" do
|
|
215
249
|
owner = create_collection_owner_with(3)
|
216
250
|
length_matcher = have_at_least(3).items_in_collection_with_length_method
|
217
251
|
size_matcher = have_at_least(3).items_in_collection_with_size_method
|
252
|
+
count_matcher = have_at_least(3).items_in_collection_with_count_method
|
218
253
|
|
219
254
|
#when
|
220
255
|
length_matcher.matches?(owner)
|
221
256
|
size_matcher.matches?(owner)
|
257
|
+
count_matcher.matches?(owner)
|
222
258
|
|
223
259
|
#then
|
224
|
-
length_matcher.failure_message_for_should_not.should
|
260
|
+
length_matcher.failure_message_for_should_not.should eq <<-EOF
|
225
261
|
Isn't life confusing enough?
|
226
262
|
Instead of having to figure out the meaning of this:
|
227
263
|
should_not have_at_least(3).items_in_collection_with_length_method
|
@@ -229,12 +265,19 @@ We recommend that you use this instead:
|
|
229
265
|
should have_at_most(2).items_in_collection_with_length_method
|
230
266
|
EOF
|
231
267
|
|
232
|
-
size_matcher.failure_message_for_should_not.should
|
268
|
+
size_matcher.failure_message_for_should_not.should eq <<-EOF
|
233
269
|
Isn't life confusing enough?
|
234
270
|
Instead of having to figure out the meaning of this:
|
235
271
|
should_not have_at_least(3).items_in_collection_with_size_method
|
236
272
|
We recommend that you use this instead:
|
237
273
|
should have_at_most(2).items_in_collection_with_size_method
|
274
|
+
EOF
|
275
|
+
count_matcher.failure_message_for_should_not.should eq <<-EOF
|
276
|
+
Isn't life confusing enough?
|
277
|
+
Instead of having to figure out the meaning of this:
|
278
|
+
should_not have_at_least(3).items_in_collection_with_count_method
|
279
|
+
We recommend that you use this instead:
|
280
|
+
should have_at_most(2).items_in_collection_with_count_method
|
238
281
|
EOF
|
239
282
|
end
|
240
283
|
end
|
@@ -244,6 +287,7 @@ EOF
|
|
244
287
|
owner = create_collection_owner_with(3)
|
245
288
|
owner.should have_at_most(3).items_in_collection_with_length_method
|
246
289
|
owner.should have_at_most(3).items_in_collection_with_size_method
|
290
|
+
owner.should have_at_most(3).items_in_collection_with_count_method
|
247
291
|
end
|
248
292
|
|
249
293
|
it "fails if target has a collection of items with > n members" do
|
@@ -254,12 +298,16 @@ EOF
|
|
254
298
|
lambda {
|
255
299
|
owner.should have_at_most(2).items_in_collection_with_size_method
|
256
300
|
}.should fail_with("expected at most 2 items_in_collection_with_size_method, got 3")
|
301
|
+
lambda {
|
302
|
+
owner.should have_at_most(2).items_in_collection_with_count_method
|
303
|
+
}.should fail_with("expected at most 2 items_in_collection_with_count_method, got 3")
|
257
304
|
end
|
258
305
|
|
259
306
|
it "passes if target has a collection of items with < n members" do
|
260
307
|
owner = create_collection_owner_with(3)
|
261
308
|
owner.should have_at_most(4).items_in_collection_with_length_method
|
262
309
|
owner.should have_at_most(4).items_in_collection_with_size_method
|
310
|
+
owner.should have_at_most(4).items_in_collection_with_count_method
|
263
311
|
end
|
264
312
|
|
265
313
|
it "provides educational negative failure messages" do
|
@@ -267,13 +315,15 @@ EOF
|
|
267
315
|
owner = create_collection_owner_with(3)
|
268
316
|
length_matcher = have_at_most(3).items_in_collection_with_length_method
|
269
317
|
size_matcher = have_at_most(3).items_in_collection_with_size_method
|
318
|
+
count_matcher = have_at_most(3).items_in_collection_with_count_method
|
270
319
|
|
271
320
|
#when
|
272
321
|
length_matcher.matches?(owner)
|
273
322
|
size_matcher.matches?(owner)
|
323
|
+
count_matcher.matches?(owner)
|
274
324
|
|
275
325
|
#then
|
276
|
-
length_matcher.failure_message_for_should_not.should
|
326
|
+
length_matcher.failure_message_for_should_not.should eq <<-EOF
|
277
327
|
Isn't life confusing enough?
|
278
328
|
Instead of having to figure out the meaning of this:
|
279
329
|
should_not have_at_most(3).items_in_collection_with_length_method
|
@@ -281,13 +331,21 @@ We recommend that you use this instead:
|
|
281
331
|
should have_at_least(4).items_in_collection_with_length_method
|
282
332
|
EOF
|
283
333
|
|
284
|
-
size_matcher.failure_message_for_should_not.should
|
334
|
+
size_matcher.failure_message_for_should_not.should eq <<-EOF
|
285
335
|
Isn't life confusing enough?
|
286
336
|
Instead of having to figure out the meaning of this:
|
287
337
|
should_not have_at_most(3).items_in_collection_with_size_method
|
288
338
|
We recommend that you use this instead:
|
289
339
|
should have_at_least(4).items_in_collection_with_size_method
|
290
340
|
EOF
|
341
|
+
|
342
|
+
count_matcher.failure_message_for_should_not.should eq <<-EOF
|
343
|
+
Isn't life confusing enough?
|
344
|
+
Instead of having to figure out the meaning of this:
|
345
|
+
should_not have_at_most(3).items_in_collection_with_count_method
|
346
|
+
We recommend that you use this instead:
|
347
|
+
should have_at_least(4).items_in_collection_with_count_method
|
348
|
+
EOF
|
291
349
|
end
|
292
350
|
end
|
293
351
|
|
@@ -336,7 +394,6 @@ EOF
|
|
336
394
|
before(:each) do
|
337
395
|
@collection = Object.new
|
338
396
|
def @collection.floozles; [1,2] end
|
339
|
-
def @collection.send(*args); raise "DOH! Library developers shouldn't use #send!" end
|
340
397
|
end
|
341
398
|
|
342
399
|
it "works in the straightforward case" do
|
@@ -364,7 +421,7 @@ EOF
|
|
364
421
|
end
|
365
422
|
|
366
423
|
it "does not respond_to? method_missing (because it's private)" do
|
367
|
-
formatter = described_class.new(
|
424
|
+
formatter = described_class.new(0, StringIO.new)
|
368
425
|
formatter.should_not respond_to(:method_missing)
|
369
426
|
end
|
370
427
|
|
@@ -151,11 +151,14 @@ end
|
|
151
151
|
|
152
152
|
describe "should >=" do
|
153
153
|
|
154
|
-
it "passes if
|
155
|
-
4.should > 3
|
154
|
+
it "passes if actual == expected" do
|
156
155
|
4.should >= 4
|
157
156
|
end
|
158
157
|
|
158
|
+
it "passes if actual > expected" do
|
159
|
+
4.should >= 3
|
160
|
+
end
|
161
|
+
|
159
162
|
it "fails if > fails" do
|
160
163
|
RSpec::Expectations.should_receive(:fail_with).with(%[expected: >= 5\n got: 4], 5, 4)
|
161
164
|
4.should >= 5
|
@@ -178,11 +181,14 @@ end
|
|
178
181
|
|
179
182
|
describe "should <=" do
|
180
183
|
|
181
|
-
it "passes if
|
182
|
-
4.should <= 5
|
184
|
+
it "passes if actual == expected" do
|
183
185
|
4.should <= 4
|
184
186
|
end
|
185
187
|
|
188
|
+
it "passes if actual < expected" do
|
189
|
+
4.should <= 5
|
190
|
+
end
|
191
|
+
|
186
192
|
it "fails if > fails" do
|
187
193
|
RSpec::Expectations.should_receive(:fail_with).with(%[expected: <= 3\n got: 4], 3, 4)
|
188
194
|
4.should <= 3
|
@@ -161,11 +161,11 @@ describe "should raise_error(NamedError, error_message) { |err| ... }" do
|
|
161
161
|
raise "example message"
|
162
162
|
}.should raise_error(RuntimeError, "example message") { |err|
|
163
163
|
ran = true
|
164
|
-
err.class.should
|
165
|
-
err.message.should
|
164
|
+
err.class.should eq RuntimeError
|
165
|
+
err.message.should eq "example message"
|
166
166
|
}
|
167
167
|
|
168
|
-
ran.should
|
168
|
+
ran.should be(true)
|
169
169
|
end
|
170
170
|
|
171
171
|
it "yielded block fails on it's own right" do
|
@@ -176,13 +176,13 @@ describe "should raise_error(NamedError, error_message) { |err| ... }" do
|
|
176
176
|
raise "example message"
|
177
177
|
}.should raise_error(RuntimeError, "example message") { |err|
|
178
178
|
ran = true
|
179
|
-
5.should
|
179
|
+
5.should eq 4
|
180
180
|
passed = true
|
181
181
|
}
|
182
182
|
}.should fail_with(/expected: 4/m)
|
183
183
|
|
184
|
-
ran.should
|
185
|
-
passed.should
|
184
|
+
ran.should be(true)
|
185
|
+
passed.should be(false)
|
186
186
|
end
|
187
187
|
|
188
188
|
it "does NOT yield exception if no error was thrown" do
|
data/spec/support/classes.rb
CHANGED
@@ -7,34 +7,45 @@ module RSpec
|
|
7
7
|
def size; @list.size; end
|
8
8
|
def push(item); @list.push(item); end
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
class CollectionWithLengthMethod
|
12
12
|
def initialize; @list = []; end
|
13
13
|
def length; @list.size; end
|
14
14
|
def push(item); @list.push(item); end
|
15
15
|
end
|
16
16
|
|
17
|
+
class CollectionWithCountMethod
|
18
|
+
def initialize; @list = []; end
|
19
|
+
def count; @list.count; end
|
20
|
+
def push(item); @list.push(item); end
|
21
|
+
end
|
22
|
+
|
17
23
|
class CollectionOwner
|
18
|
-
attr_reader :items_in_collection_with_size_method, :items_in_collection_with_length_method
|
19
|
-
|
24
|
+
attr_reader :items_in_collection_with_size_method, :items_in_collection_with_length_method, :items_in_collection_with_count_method
|
25
|
+
|
20
26
|
def initialize
|
21
27
|
@items_in_collection_with_size_method = CollectionWithSizeMethod.new
|
22
28
|
@items_in_collection_with_length_method = CollectionWithLengthMethod.new
|
29
|
+
@items_in_collection_with_count_method = CollectionWithCountMethod.new
|
23
30
|
end
|
24
|
-
|
31
|
+
|
25
32
|
def add_to_collection_with_size_method(item)
|
26
33
|
@items_in_collection_with_size_method.push(item)
|
27
34
|
end
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
35
|
+
|
36
|
+
def add_to_collection_with_length_method(item)
|
37
|
+
@items_in_collection_with_length_method.push(item)
|
38
|
+
end
|
39
|
+
|
40
|
+
def add_to_collection_with_count_method(item)
|
41
|
+
@items_in_collection_with_count_method.push(item)
|
42
|
+
end
|
43
|
+
|
33
44
|
def items_for(arg)
|
34
45
|
return [1, 2, 3] if arg == 'a'
|
35
46
|
[1]
|
36
47
|
end
|
37
|
-
|
48
|
+
|
38
49
|
def items
|
39
50
|
@items_in_collection_with_size_method
|
40
51
|
end
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-expectations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15424039
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
8
|
+
- 7
|
9
9
|
- 0
|
10
|
-
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 2.7.0.rc1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- David Chelimsky
|
@@ -16,10 +18,12 @@ autorequire:
|
|
16
18
|
bindir: bin
|
17
19
|
cert_chain: []
|
18
20
|
|
19
|
-
date: 2011-
|
20
|
-
default_executable:
|
21
|
+
date: 2011-10-09 00:00:00 Z
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
name: diff-lcs
|
23
27
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
28
|
none: false
|
25
29
|
requirements:
|
@@ -31,10 +35,7 @@ dependencies:
|
|
31
35
|
- 1
|
32
36
|
- 2
|
33
37
|
version: 1.1.2
|
34
|
-
prerelease: false
|
35
|
-
type: :runtime
|
36
38
|
requirement: *id001
|
37
|
-
name: diff-lcs
|
38
39
|
description: rspec expectations (should[_not] and matchers)
|
39
40
|
email: dchelimsky@gmail.com;chad.humphries@gmail.com
|
40
41
|
executables: []
|
@@ -44,56 +45,15 @@ extensions: []
|
|
44
45
|
extra_rdoc_files:
|
45
46
|
- README.md
|
46
47
|
files:
|
47
|
-
- .document
|
48
|
-
- .gitignore
|
49
|
-
- .travis.yml
|
50
|
-
- Gemfile
|
51
|
-
- Guardfile
|
52
|
-
- License.txt
|
53
|
-
- README.md
|
54
|
-
- Rakefile
|
55
|
-
- cucumber.yml
|
56
|
-
- features/.nav
|
57
|
-
- features/Changelog.md
|
58
|
-
- features/README.markdown
|
59
|
-
- features/Upgrade.md
|
60
|
-
- features/built_in_matchers/README.md
|
61
|
-
- features/built_in_matchers/be.feature
|
62
|
-
- features/built_in_matchers/be_within.feature
|
63
|
-
- features/built_in_matchers/cover.feature
|
64
|
-
- features/built_in_matchers/equality.feature
|
65
|
-
- features/built_in_matchers/exist.feature
|
66
|
-
- features/built_in_matchers/expect_change.feature
|
67
|
-
- features/built_in_matchers/expect_error.feature
|
68
|
-
- features/built_in_matchers/have.feature
|
69
|
-
- features/built_in_matchers/include.feature
|
70
|
-
- features/built_in_matchers/match.feature
|
71
|
-
- features/built_in_matchers/operators.feature
|
72
|
-
- features/built_in_matchers/predicates.feature
|
73
|
-
- features/built_in_matchers/respond_to.feature
|
74
|
-
- features/built_in_matchers/satisfy.feature
|
75
|
-
- features/built_in_matchers/throw_symbol.feature
|
76
|
-
- features/built_in_matchers/types.feature
|
77
|
-
- features/custom_matchers/access_running_example.feature
|
78
|
-
- features/custom_matchers/define_diffable_matcher.feature
|
79
|
-
- features/custom_matchers/define_matcher.feature
|
80
|
-
- features/custom_matchers/define_matcher_outside_rspec.feature
|
81
|
-
- features/custom_matchers/define_matcher_with_fluent_interface.feature
|
82
|
-
- features/customized_message.feature
|
83
|
-
- features/diffing.feature
|
84
|
-
- features/implicit_docstrings.feature
|
85
|
-
- features/step_definitions/additional_cli_steps.rb
|
86
|
-
- features/support/env.rb
|
87
|
-
- features/test_frameworks/test_unit.feature
|
88
48
|
- lib/rspec-expectations.rb
|
89
49
|
- lib/rspec/expectations.rb
|
90
|
-
- lib/rspec/expectations/backward_compatibility.rb
|
91
50
|
- lib/rspec/expectations/deprecation.rb
|
92
51
|
- lib/rspec/expectations/differ.rb
|
93
52
|
- lib/rspec/expectations/errors.rb
|
94
53
|
- lib/rspec/expectations/extensions.rb
|
95
54
|
- lib/rspec/expectations/extensions/array.rb
|
96
55
|
- lib/rspec/expectations/extensions/kernel.rb
|
56
|
+
- lib/rspec/expectations/extensions/object.rb
|
97
57
|
- lib/rspec/expectations/fail_with.rb
|
98
58
|
- lib/rspec/expectations/handler.rb
|
99
59
|
- lib/rspec/expectations/version.rb
|
@@ -113,7 +73,7 @@ files:
|
|
113
73
|
- lib/rspec/matchers/equal.rb
|
114
74
|
- lib/rspec/matchers/errors.rb
|
115
75
|
- lib/rspec/matchers/exist.rb
|
116
|
-
- lib/rspec/matchers/extensions/
|
76
|
+
- lib/rspec/matchers/extensions/instance_eval_with_args.rb
|
117
77
|
- lib/rspec/matchers/generated_descriptions.rb
|
118
78
|
- lib/rspec/matchers/has.rb
|
119
79
|
- lib/rspec/matchers/have.rb
|
@@ -128,7 +88,37 @@ files:
|
|
128
88
|
- lib/rspec/matchers/respond_to.rb
|
129
89
|
- lib/rspec/matchers/satisfy.rb
|
130
90
|
- lib/rspec/matchers/throw_symbol.rb
|
131
|
-
-
|
91
|
+
- README.md
|
92
|
+
- features/README.markdown
|
93
|
+
- features/Upgrade.md
|
94
|
+
- features/built_in_matchers/README.md
|
95
|
+
- features/built_in_matchers/be.feature
|
96
|
+
- features/built_in_matchers/be_within.feature
|
97
|
+
- features/built_in_matchers/cover.feature
|
98
|
+
- features/built_in_matchers/equality.feature
|
99
|
+
- features/built_in_matchers/exist.feature
|
100
|
+
- features/built_in_matchers/expect_change.feature
|
101
|
+
- features/built_in_matchers/expect_error.feature
|
102
|
+
- features/built_in_matchers/have.feature
|
103
|
+
- features/built_in_matchers/include.feature
|
104
|
+
- features/built_in_matchers/match.feature
|
105
|
+
- features/built_in_matchers/operators.feature
|
106
|
+
- features/built_in_matchers/predicates.feature
|
107
|
+
- features/built_in_matchers/respond_to.feature
|
108
|
+
- features/built_in_matchers/satisfy.feature
|
109
|
+
- features/built_in_matchers/throw_symbol.feature
|
110
|
+
- features/built_in_matchers/types.feature
|
111
|
+
- features/custom_matchers/access_running_example.feature
|
112
|
+
- features/custom_matchers/define_diffable_matcher.feature
|
113
|
+
- features/custom_matchers/define_matcher.feature
|
114
|
+
- features/custom_matchers/define_matcher_outside_rspec.feature
|
115
|
+
- features/custom_matchers/define_matcher_with_fluent_interface.feature
|
116
|
+
- features/customized_message.feature
|
117
|
+
- features/diffing.feature
|
118
|
+
- features/implicit_docstrings.feature
|
119
|
+
- features/step_definitions/additional_cli_steps.rb
|
120
|
+
- features/support/env.rb
|
121
|
+
- features/test_frameworks/test_unit.feature
|
132
122
|
- spec/rspec/expectations/differ_spec.rb
|
133
123
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|
134
124
|
- spec/rspec/expectations/fail_with_spec.rb
|
@@ -164,8 +154,6 @@ files:
|
|
164
154
|
- spec/support/classes.rb
|
165
155
|
- spec/support/matchers.rb
|
166
156
|
- spec/support/ruby_version.rb
|
167
|
-
- specs.watchr
|
168
|
-
has_rdoc: true
|
169
157
|
homepage: http://github.com/rspec/rspec-expectations
|
170
158
|
licenses: []
|
171
159
|
|
@@ -186,21 +174,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
175
|
none: false
|
188
176
|
requirements:
|
189
|
-
- - "
|
177
|
+
- - ">"
|
190
178
|
- !ruby/object:Gem::Version
|
191
|
-
hash:
|
179
|
+
hash: 25
|
192
180
|
segments:
|
193
|
-
-
|
194
|
-
|
181
|
+
- 1
|
182
|
+
- 3
|
183
|
+
- 1
|
184
|
+
version: 1.3.1
|
195
185
|
requirements: []
|
196
186
|
|
197
187
|
rubyforge_project: rspec
|
198
|
-
rubygems_version: 1.6
|
188
|
+
rubygems_version: 1.8.6
|
199
189
|
signing_key:
|
200
190
|
specification_version: 3
|
201
|
-
summary: rspec-expectations-2.
|
191
|
+
summary: rspec-expectations-2.7.0.rc1
|
202
192
|
test_files:
|
203
|
-
- features/Changelog.md
|
204
193
|
- features/README.markdown
|
205
194
|
- features/Upgrade.md
|
206
195
|
- features/built_in_matchers/README.md
|