rspec-expectations 2.11.3 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +25 -2
- data/README.md +5 -1
- data/features/built_in_matchers/be.feature +4 -4
- data/features/built_in_matchers/be_within.feature +1 -1
- data/features/built_in_matchers/cover.feature +1 -1
- data/features/built_in_matchers/end_with.feature +2 -2
- data/features/built_in_matchers/equality.feature +5 -5
- data/features/built_in_matchers/exist.feature +1 -1
- data/features/built_in_matchers/expect_change.feature +3 -3
- data/features/built_in_matchers/expect_error.feature +4 -4
- data/features/built_in_matchers/have.feature +2 -2
- data/features/built_in_matchers/include.feature +3 -3
- data/features/built_in_matchers/match.feature +2 -2
- data/features/built_in_matchers/operators.feature +3 -3
- data/features/built_in_matchers/predicates.feature +9 -8
- data/features/built_in_matchers/respond_to.feature +2 -2
- data/features/built_in_matchers/satisfy.feature +1 -1
- data/features/built_in_matchers/start_with.feature +2 -2
- data/features/built_in_matchers/throw_symbol.feature +3 -3
- data/features/built_in_matchers/types.feature +2 -2
- data/features/built_in_matchers/yield.feature +5 -5
- data/features/custom_matchers/access_running_example.feature +3 -3
- data/features/custom_matchers/define_diffable_matcher.feature +1 -1
- data/features/custom_matchers/define_matcher.feature +12 -12
- data/features/custom_matchers/define_matcher_outside_rspec.feature +1 -1
- data/features/custom_matchers/define_matcher_with_fluent_interface.feature +1 -1
- data/features/customized_message.feature +1 -1
- data/features/diffing.feature +4 -4
- data/features/implicit_docstrings.feature +2 -2
- data/features/test_frameworks/test_unit.feature +1 -1
- data/lib/rspec/expectations/differ.rb +35 -1
- data/lib/rspec/expectations/handler.rb +21 -6
- data/lib/rspec/expectations/version.rb +1 -1
- data/lib/rspec/matchers/built_in/be_instance_of.rb +4 -0
- data/lib/rspec/matchers/built_in/include.rb +3 -1
- data/lib/rspec/matchers/built_in/match_array.rb +12 -6
- data/lib/rspec/matchers/built_in/raise_error.rb +17 -7
- data/lib/rspec/matchers/built_in/yield.rb +5 -5
- data/lib/rspec/matchers/configuration.rb +42 -0
- data/lib/rspec/matchers/generated_descriptions.rb +2 -3
- data/spec/rspec/expectations/differ_spec.rb +24 -0
- data/spec/rspec/expectations/handler_spec.rb +40 -40
- data/spec/rspec/expectations/syntax_spec.rb +35 -0
- data/spec/rspec/matchers/be_instance_of_spec.rb +19 -2
- data/spec/rspec/matchers/be_spec.rb +10 -10
- data/spec/rspec/matchers/configuration_spec.rb +155 -123
- data/spec/rspec/matchers/dsl_spec.rb +8 -8
- data/spec/rspec/matchers/have_spec.rb +8 -38
- data/spec/rspec/matchers/include_spec.rb +6 -0
- data/spec/rspec/matchers/match_array_spec.rb +14 -0
- data/spec/rspec/matchers/raise_error_spec.rb +89 -38
- data/spec/rspec/matchers/start_with_end_with_spec.rb +1 -1
- data/spec/rspec/matchers/yield_spec.rb +35 -0
- metadata +70 -78
metadata
CHANGED
@@ -1,96 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-expectations
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.12.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 11
|
9
|
-
- 3
|
10
|
-
version: 2.11.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Steven Baker
|
14
9
|
- David Chelimsky
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: diff-lcs
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.1.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
|
-
requirements:
|
27
|
+
requirements:
|
28
28
|
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 21
|
31
|
-
segments:
|
32
|
-
- 1
|
33
|
-
- 1
|
34
|
-
- 3
|
29
|
+
- !ruby/object:Gem::Version
|
35
30
|
version: 1.1.3
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
31
|
+
- !ruby/object:Gem::Dependency
|
38
32
|
name: rake
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 10.0.0
|
39
39
|
type: :development
|
40
40
|
prerelease: false
|
41
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
|
-
requirements:
|
43
|
+
requirements:
|
44
44
|
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
48
|
-
- 0
|
49
|
-
- 9
|
50
|
-
- 2
|
51
|
-
version: 0.9.2
|
52
|
-
requirement: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 10.0.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
54
48
|
name: cucumber
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.1.9
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
none: false
|
59
|
-
requirements:
|
59
|
+
requirements:
|
60
60
|
- - ~>
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
hash: 1
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 1
|
66
|
-
- 9
|
61
|
+
- !ruby/object:Gem::Version
|
67
62
|
version: 1.1.9
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
63
|
+
- !ruby/object:Gem::Dependency
|
70
64
|
name: aruba
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 0.4.11
|
71
71
|
type: :development
|
72
72
|
prerelease: false
|
73
|
-
version_requirements:
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
|
-
requirements:
|
75
|
+
requirements:
|
76
76
|
- - ~>
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
hash: 25
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
- 4
|
82
|
-
- 11
|
77
|
+
- !ruby/object:Gem::Version
|
83
78
|
version: 0.4.11
|
84
|
-
requirement: *id004
|
85
79
|
description: rspec expectations (should[_not] and matchers)
|
86
80
|
email: rspec-users@rubyforge.org
|
87
81
|
executables: []
|
88
|
-
|
89
82
|
extensions: []
|
90
|
-
|
91
83
|
extra_rdoc_files: []
|
92
|
-
|
93
|
-
files:
|
84
|
+
files:
|
94
85
|
- lib/rspec-expectations.rb
|
95
86
|
- lib/rspec/expectations.rb
|
96
87
|
- lib/rspec/expectations/deprecation.rb
|
@@ -182,6 +173,7 @@ files:
|
|
182
173
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|
183
174
|
- spec/rspec/expectations/fail_with_spec.rb
|
184
175
|
- spec/rspec/expectations/handler_spec.rb
|
176
|
+
- spec/rspec/expectations/syntax_spec.rb
|
185
177
|
- spec/rspec/matchers/base_matcher_spec.rb
|
186
178
|
- spec/rspec/matchers/be_close_spec.rb
|
187
179
|
- spec/rspec/matchers/be_instance_of_spec.rb
|
@@ -219,39 +211,38 @@ files:
|
|
219
211
|
- spec/support/ruby_version.rb
|
220
212
|
- spec/support/shared_examples.rb
|
221
213
|
homepage: http://github.com/rspec/rspec-expectations
|
222
|
-
licenses:
|
214
|
+
licenses:
|
223
215
|
- MIT
|
224
216
|
post_install_message:
|
225
|
-
rdoc_options:
|
217
|
+
rdoc_options:
|
226
218
|
- --charset=UTF-8
|
227
|
-
require_paths:
|
219
|
+
require_paths:
|
228
220
|
- lib
|
229
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
221
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
222
|
none: false
|
231
|
-
requirements:
|
232
|
-
- -
|
233
|
-
- !ruby/object:Gem::Version
|
234
|
-
|
235
|
-
segments:
|
223
|
+
requirements:
|
224
|
+
- - ! '>='
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '0'
|
227
|
+
segments:
|
236
228
|
- 0
|
237
|
-
|
238
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
+
hash: -3915124233678140450
|
230
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
231
|
none: false
|
240
|
-
requirements:
|
241
|
-
- -
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
|
244
|
-
segments:
|
232
|
+
requirements:
|
233
|
+
- - ! '>='
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
segments:
|
245
237
|
- 0
|
246
|
-
|
238
|
+
hash: -3915124233678140450
|
247
239
|
requirements: []
|
248
|
-
|
249
240
|
rubyforge_project: rspec
|
250
|
-
rubygems_version: 1.8.
|
241
|
+
rubygems_version: 1.8.24
|
251
242
|
signing_key:
|
252
243
|
specification_version: 3
|
253
|
-
summary: rspec-expectations-2.
|
254
|
-
test_files:
|
244
|
+
summary: rspec-expectations-2.12.0
|
245
|
+
test_files:
|
255
246
|
- features/README.md
|
256
247
|
- features/Upgrade.md
|
257
248
|
- features/built_in_matchers/README.md
|
@@ -291,6 +282,7 @@ test_files:
|
|
291
282
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|
292
283
|
- spec/rspec/expectations/fail_with_spec.rb
|
293
284
|
- spec/rspec/expectations/handler_spec.rb
|
285
|
+
- spec/rspec/expectations/syntax_spec.rb
|
294
286
|
- spec/rspec/matchers/base_matcher_spec.rb
|
295
287
|
- spec/rspec/matchers/be_close_spec.rb
|
296
288
|
- spec/rspec/matchers/be_instance_of_spec.rb
|