rspec-change_to_now 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +8 -0
- data/lib/rspec/change_to_now/detect.rb +7 -3
- data/lib/rspec/change_to_now/version.rb +1 -1
- data/spec/rspec/detect_spec.rb +4 -4
- metadata +1 -2
- data/Gemfile.lock +0 -280
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91fa21b5de7d035ade4c3e75449d2aa869666083
|
4
|
+
data.tar.gz: 966af72e0e054cf7592dc580530b90c36a4974c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fbd80b7b3881e4368adc39d4fdbf2d60e72457ac2406b9d05e8b0db2739a55bf06ffad3cd31275e8f2e5b759db32535ac265c4a908396c520ed7f8e794a8b8a
|
7
|
+
data.tar.gz: 39d7852e10fa38a23c0ae6c6e9bc0aeef36ddd91582518071a77b1dce5575188a3bab82ff8cc651c523e544e6436dab4be3aed4e290f8f470029d5fd97dff148
|
data/Changelog.md
CHANGED
@@ -49,6 +49,12 @@ module RSpec
|
|
49
49
|
@block.nil?
|
50
50
|
end
|
51
51
|
|
52
|
+
# @api private
|
53
|
+
# @return [String]
|
54
|
+
def description
|
55
|
+
super.gsub(/^include/, 'detect')
|
56
|
+
end
|
57
|
+
|
52
58
|
private
|
53
59
|
|
54
60
|
def block_and_arguments_together_failure_message
|
@@ -82,9 +88,7 @@ module RSpec
|
|
82
88
|
# expect({a: 2}).to detect { |k,v| v.even? }
|
83
89
|
# expect([1]).to detect 1
|
84
90
|
def detect(*expected, &block)
|
85
|
-
|
86
|
-
old_desc.gsub(Pretty.split_words('include'), Pretty.split_words('detect'))
|
87
|
-
end)
|
91
|
+
Detect.new(*expected, &block)
|
88
92
|
end
|
89
93
|
end
|
90
94
|
end
|
data/spec/rspec/detect_spec.rb
CHANGED
@@ -10,7 +10,7 @@ RSpec.describe "#detect matcher" do
|
|
10
10
|
it "fails if target does not detect expected" do
|
11
11
|
expect {
|
12
12
|
expect([1,3]).to detect(&:even?)
|
13
|
-
}.to fail_matching("expected [1, 3] to
|
13
|
+
}.to fail_matching("expected [1, 3] to detect (satisfy block)")
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -22,7 +22,7 @@ RSpec.describe "#detect matcher" do
|
|
22
22
|
it "fails if target does not detect expected" do
|
23
23
|
expect {
|
24
24
|
expect({:key => 1}).to detect { |key,value| value.even? }
|
25
|
-
}.to fail_matching("expected {:key => 1} to
|
25
|
+
}.to fail_matching("expected {:key => 1} to detect (satisfy block)")
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -36,7 +36,7 @@ RSpec.describe "#detect matcher" do
|
|
36
36
|
it "fails if target does not detect expected" do
|
37
37
|
expect {
|
38
38
|
expect([1,3]).not_to detect(&:odd?)
|
39
|
-
}.to fail_matching("expected [1, 3] not to
|
39
|
+
}.to fail_matching("expected [1, 3] not to detect (satisfy block)")
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -48,7 +48,7 @@ RSpec.describe "#detect matcher" do
|
|
48
48
|
it "fails if target does not detect expected" do
|
49
49
|
expect {
|
50
50
|
expect({:key => 1}).not_to detect { |key,value| value.odd? }
|
51
|
-
}.to fail_matching("expected {:key => 1} not to
|
51
|
+
}.to fail_matching("expected {:key => 1} not to detect (satisfy block)")
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-change_to_now
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew S. Brown
|
@@ -163,7 +163,6 @@ files:
|
|
163
163
|
- ".travis.yml"
|
164
164
|
- Changelog.md
|
165
165
|
- Gemfile
|
166
|
-
- Gemfile.lock
|
167
166
|
- LICENSE.txt
|
168
167
|
- README.md
|
169
168
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,280 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
rspec-change_to_now (1.0.1)
|
5
|
-
rspec-core (>= 3.0.0)
|
6
|
-
rspec-expectations (>= 3.0.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
aruba (0.6.0)
|
12
|
-
childprocess (>= 0.3.6)
|
13
|
-
cucumber (>= 1.1.1)
|
14
|
-
rspec-expectations (>= 2.7.0)
|
15
|
-
builder (3.2.2)
|
16
|
-
childprocess (0.5.3)
|
17
|
-
ffi (~> 1.0, >= 1.0.11)
|
18
|
-
codeclimate-test-reporter (0.4.0)
|
19
|
-
simplecov (>= 0.7.1, < 1.0.0)
|
20
|
-
coveralls (0.7.0)
|
21
|
-
multi_json (~> 1.3)
|
22
|
-
rest-client
|
23
|
-
simplecov (>= 0.7)
|
24
|
-
term-ansicolor
|
25
|
-
thor
|
26
|
-
cucumber (1.3.16)
|
27
|
-
builder (>= 2.1.2)
|
28
|
-
diff-lcs (>= 1.1.3)
|
29
|
-
gherkin (~> 2.12)
|
30
|
-
multi_json (>= 1.7.5, < 2.0)
|
31
|
-
multi_test (>= 0.1.1)
|
32
|
-
diff-lcs (1.2.5)
|
33
|
-
docile (1.1.5)
|
34
|
-
ffi (1.9.3)
|
35
|
-
ffi2-generators (0.1.1)
|
36
|
-
gem-release (0.7.3)
|
37
|
-
gherkin (2.12.2)
|
38
|
-
multi_json (~> 1.3)
|
39
|
-
mime-types (2.3)
|
40
|
-
multi_json (1.10.1)
|
41
|
-
multi_test (0.1.1)
|
42
|
-
netrc (0.7.7)
|
43
|
-
rake (10.1.1)
|
44
|
-
rest-client (1.7.2)
|
45
|
-
mime-types (>= 1.16, < 3.0)
|
46
|
-
netrc (~> 0.7)
|
47
|
-
rspec-core (3.0.3)
|
48
|
-
rspec-support (~> 3.0.0)
|
49
|
-
rspec-expectations (3.0.3)
|
50
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.0.0)
|
52
|
-
rspec-mocks (3.0.3)
|
53
|
-
rspec-support (~> 3.0.0)
|
54
|
-
rspec-support (3.0.3)
|
55
|
-
rubysl (2.0.15)
|
56
|
-
rubysl-abbrev (~> 2.0)
|
57
|
-
rubysl-base64 (~> 2.0)
|
58
|
-
rubysl-benchmark (~> 2.0)
|
59
|
-
rubysl-bigdecimal (~> 2.0)
|
60
|
-
rubysl-cgi (~> 2.0)
|
61
|
-
rubysl-cgi-session (~> 2.0)
|
62
|
-
rubysl-cmath (~> 2.0)
|
63
|
-
rubysl-complex (~> 2.0)
|
64
|
-
rubysl-continuation (~> 2.0)
|
65
|
-
rubysl-coverage (~> 2.0)
|
66
|
-
rubysl-csv (~> 2.0)
|
67
|
-
rubysl-curses (~> 2.0)
|
68
|
-
rubysl-date (~> 2.0)
|
69
|
-
rubysl-delegate (~> 2.0)
|
70
|
-
rubysl-digest (~> 2.0)
|
71
|
-
rubysl-drb (~> 2.0)
|
72
|
-
rubysl-e2mmap (~> 2.0)
|
73
|
-
rubysl-english (~> 2.0)
|
74
|
-
rubysl-enumerator (~> 2.0)
|
75
|
-
rubysl-erb (~> 2.0)
|
76
|
-
rubysl-etc (~> 2.0)
|
77
|
-
rubysl-expect (~> 2.0)
|
78
|
-
rubysl-fcntl (~> 2.0)
|
79
|
-
rubysl-fiber (~> 2.0)
|
80
|
-
rubysl-fileutils (~> 2.0)
|
81
|
-
rubysl-find (~> 2.0)
|
82
|
-
rubysl-forwardable (~> 2.0)
|
83
|
-
rubysl-getoptlong (~> 2.0)
|
84
|
-
rubysl-gserver (~> 2.0)
|
85
|
-
rubysl-io-console (~> 2.0)
|
86
|
-
rubysl-io-nonblock (~> 2.0)
|
87
|
-
rubysl-io-wait (~> 2.0)
|
88
|
-
rubysl-ipaddr (~> 2.0)
|
89
|
-
rubysl-irb (~> 2.0)
|
90
|
-
rubysl-logger (~> 2.0)
|
91
|
-
rubysl-mathn (~> 2.0)
|
92
|
-
rubysl-matrix (~> 2.0)
|
93
|
-
rubysl-mkmf (~> 2.0)
|
94
|
-
rubysl-monitor (~> 2.0)
|
95
|
-
rubysl-mutex_m (~> 2.0)
|
96
|
-
rubysl-net-ftp (~> 2.0)
|
97
|
-
rubysl-net-http (~> 2.0)
|
98
|
-
rubysl-net-imap (~> 2.0)
|
99
|
-
rubysl-net-pop (~> 2.0)
|
100
|
-
rubysl-net-protocol (~> 2.0)
|
101
|
-
rubysl-net-smtp (~> 2.0)
|
102
|
-
rubysl-net-telnet (~> 2.0)
|
103
|
-
rubysl-nkf (~> 2.0)
|
104
|
-
rubysl-observer (~> 2.0)
|
105
|
-
rubysl-open-uri (~> 2.0)
|
106
|
-
rubysl-open3 (~> 2.0)
|
107
|
-
rubysl-openssl (~> 2.0)
|
108
|
-
rubysl-optparse (~> 2.0)
|
109
|
-
rubysl-ostruct (~> 2.0)
|
110
|
-
rubysl-pathname (~> 2.0)
|
111
|
-
rubysl-prettyprint (~> 2.0)
|
112
|
-
rubysl-prime (~> 2.0)
|
113
|
-
rubysl-profile (~> 2.0)
|
114
|
-
rubysl-profiler (~> 2.0)
|
115
|
-
rubysl-pstore (~> 2.0)
|
116
|
-
rubysl-pty (~> 2.0)
|
117
|
-
rubysl-rational (~> 2.0)
|
118
|
-
rubysl-readline (~> 2.0)
|
119
|
-
rubysl-resolv (~> 2.0)
|
120
|
-
rubysl-rexml (~> 2.0)
|
121
|
-
rubysl-rinda (~> 2.0)
|
122
|
-
rubysl-rss (~> 2.0)
|
123
|
-
rubysl-scanf (~> 2.0)
|
124
|
-
rubysl-securerandom (~> 2.0)
|
125
|
-
rubysl-set (~> 2.0)
|
126
|
-
rubysl-shellwords (~> 2.0)
|
127
|
-
rubysl-singleton (~> 2.0)
|
128
|
-
rubysl-socket (~> 2.0)
|
129
|
-
rubysl-stringio (~> 2.0)
|
130
|
-
rubysl-strscan (~> 2.0)
|
131
|
-
rubysl-sync (~> 2.0)
|
132
|
-
rubysl-syslog (~> 2.0)
|
133
|
-
rubysl-tempfile (~> 2.0)
|
134
|
-
rubysl-thread (~> 2.0)
|
135
|
-
rubysl-thwait (~> 2.0)
|
136
|
-
rubysl-time (~> 2.0)
|
137
|
-
rubysl-timeout (~> 2.0)
|
138
|
-
rubysl-tmpdir (~> 2.0)
|
139
|
-
rubysl-tsort (~> 2.0)
|
140
|
-
rubysl-un (~> 2.0)
|
141
|
-
rubysl-uri (~> 2.0)
|
142
|
-
rubysl-weakref (~> 2.0)
|
143
|
-
rubysl-webrick (~> 2.0)
|
144
|
-
rubysl-xmlrpc (~> 2.0)
|
145
|
-
rubysl-yaml (~> 2.0)
|
146
|
-
rubysl-zlib (~> 2.0)
|
147
|
-
rubysl-abbrev (2.0.4)
|
148
|
-
rubysl-base64 (2.0.0)
|
149
|
-
rubysl-benchmark (2.0.1)
|
150
|
-
rubysl-bigdecimal (2.0.2)
|
151
|
-
rubysl-cgi (2.0.1)
|
152
|
-
rubysl-cgi-session (2.0.1)
|
153
|
-
rubysl-cmath (2.0.0)
|
154
|
-
rubysl-complex (2.0.0)
|
155
|
-
rubysl-continuation (2.0.0)
|
156
|
-
rubysl-coverage (2.0.3)
|
157
|
-
rubysl-csv (2.0.2)
|
158
|
-
rubysl-english (~> 2.0)
|
159
|
-
rubysl-curses (2.0.1)
|
160
|
-
rubysl-date (2.0.6)
|
161
|
-
rubysl-delegate (2.0.1)
|
162
|
-
rubysl-digest (2.0.3)
|
163
|
-
rubysl-drb (2.0.1)
|
164
|
-
rubysl-e2mmap (2.0.0)
|
165
|
-
rubysl-english (2.0.0)
|
166
|
-
rubysl-enumerator (2.0.0)
|
167
|
-
rubysl-erb (2.0.1)
|
168
|
-
rubysl-etc (2.0.3)
|
169
|
-
ffi2-generators (~> 0.1)
|
170
|
-
rubysl-expect (2.0.0)
|
171
|
-
rubysl-fcntl (2.0.4)
|
172
|
-
ffi2-generators (~> 0.1)
|
173
|
-
rubysl-fiber (2.0.0)
|
174
|
-
rubysl-fileutils (2.0.3)
|
175
|
-
rubysl-find (2.0.1)
|
176
|
-
rubysl-forwardable (2.0.1)
|
177
|
-
rubysl-getoptlong (2.0.0)
|
178
|
-
rubysl-gserver (2.0.0)
|
179
|
-
rubysl-socket (~> 2.0)
|
180
|
-
rubysl-thread (~> 2.0)
|
181
|
-
rubysl-io-console (2.0.0)
|
182
|
-
rubysl-io-nonblock (2.0.0)
|
183
|
-
rubysl-io-wait (2.0.0)
|
184
|
-
rubysl-ipaddr (2.0.0)
|
185
|
-
rubysl-irb (2.0.4)
|
186
|
-
rubysl-e2mmap (~> 2.0)
|
187
|
-
rubysl-mathn (~> 2.0)
|
188
|
-
rubysl-readline (~> 2.0)
|
189
|
-
rubysl-thread (~> 2.0)
|
190
|
-
rubysl-logger (2.0.0)
|
191
|
-
rubysl-mathn (2.0.0)
|
192
|
-
rubysl-matrix (2.1.0)
|
193
|
-
rubysl-e2mmap (~> 2.0)
|
194
|
-
rubysl-mkmf (2.0.1)
|
195
|
-
rubysl-fileutils (~> 2.0)
|
196
|
-
rubysl-shellwords (~> 2.0)
|
197
|
-
rubysl-monitor (2.0.0)
|
198
|
-
rubysl-mutex_m (2.0.0)
|
199
|
-
rubysl-net-ftp (2.0.1)
|
200
|
-
rubysl-net-http (2.0.4)
|
201
|
-
rubysl-cgi (~> 2.0)
|
202
|
-
rubysl-erb (~> 2.0)
|
203
|
-
rubysl-singleton (~> 2.0)
|
204
|
-
rubysl-net-imap (2.0.1)
|
205
|
-
rubysl-net-pop (2.0.1)
|
206
|
-
rubysl-net-protocol (2.0.1)
|
207
|
-
rubysl-net-smtp (2.0.1)
|
208
|
-
rubysl-net-telnet (2.0.0)
|
209
|
-
rubysl-nkf (2.0.1)
|
210
|
-
rubysl-observer (2.0.0)
|
211
|
-
rubysl-open-uri (2.0.0)
|
212
|
-
rubysl-open3 (2.0.0)
|
213
|
-
rubysl-openssl (2.1.0)
|
214
|
-
rubysl-optparse (2.0.1)
|
215
|
-
rubysl-shellwords (~> 2.0)
|
216
|
-
rubysl-ostruct (2.0.4)
|
217
|
-
rubysl-pathname (2.0.0)
|
218
|
-
rubysl-prettyprint (2.0.3)
|
219
|
-
rubysl-prime (2.0.1)
|
220
|
-
rubysl-profile (2.0.0)
|
221
|
-
rubysl-profiler (2.0.1)
|
222
|
-
rubysl-pstore (2.0.0)
|
223
|
-
rubysl-pty (2.0.2)
|
224
|
-
rubysl-rational (2.0.1)
|
225
|
-
rubysl-readline (2.0.2)
|
226
|
-
rubysl-resolv (2.1.0)
|
227
|
-
rubysl-rexml (2.0.2)
|
228
|
-
rubysl-rinda (2.0.1)
|
229
|
-
rubysl-rss (2.0.0)
|
230
|
-
rubysl-scanf (2.0.0)
|
231
|
-
rubysl-securerandom (2.0.0)
|
232
|
-
rubysl-set (2.0.1)
|
233
|
-
rubysl-shellwords (2.0.0)
|
234
|
-
rubysl-singleton (2.0.0)
|
235
|
-
rubysl-socket (2.0.1)
|
236
|
-
rubysl-stringio (2.0.0)
|
237
|
-
rubysl-strscan (2.0.0)
|
238
|
-
rubysl-sync (2.0.0)
|
239
|
-
rubysl-syslog (2.0.1)
|
240
|
-
ffi2-generators (~> 0.1)
|
241
|
-
rubysl-tempfile (2.0.1)
|
242
|
-
rubysl-thread (2.0.2)
|
243
|
-
rubysl-thwait (2.0.0)
|
244
|
-
rubysl-time (2.0.3)
|
245
|
-
rubysl-timeout (2.0.0)
|
246
|
-
rubysl-tmpdir (2.0.1)
|
247
|
-
rubysl-tsort (2.0.1)
|
248
|
-
rubysl-un (2.0.0)
|
249
|
-
rubysl-fileutils (~> 2.0)
|
250
|
-
rubysl-optparse (~> 2.0)
|
251
|
-
rubysl-uri (2.0.0)
|
252
|
-
rubysl-weakref (2.0.0)
|
253
|
-
rubysl-webrick (2.0.0)
|
254
|
-
rubysl-xmlrpc (2.0.0)
|
255
|
-
rubysl-yaml (2.0.4)
|
256
|
-
rubysl-zlib (2.0.1)
|
257
|
-
simplecov (0.8.2)
|
258
|
-
docile (~> 1.1.0)
|
259
|
-
multi_json
|
260
|
-
simplecov-html (~> 0.8.0)
|
261
|
-
simplecov-html (0.8.0)
|
262
|
-
term-ansicolor (1.3.0)
|
263
|
-
tins (~> 1.0)
|
264
|
-
thor (0.19.1)
|
265
|
-
tins (1.3.0)
|
266
|
-
|
267
|
-
PLATFORMS
|
268
|
-
ruby
|
269
|
-
|
270
|
-
DEPENDENCIES
|
271
|
-
aruba (~> 0.5)
|
272
|
-
bundler (~> 1.3)
|
273
|
-
codeclimate-test-reporter (~> 0.4.0)
|
274
|
-
coveralls (~> 0.5)
|
275
|
-
cucumber (~> 1.3.8)
|
276
|
-
gem-release (~> 0.7.3)
|
277
|
-
rake (~> 10.1.0)
|
278
|
-
rspec-change_to_now!
|
279
|
-
rspec-mocks (>= 3.0.0)
|
280
|
-
rubysl
|