totally_lazy 0.1.43 → 0.1.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/totally_lazy/predicates.rb +6 -0
- data/spec/totally_lazy/predicates_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzA2YmNiZDA0NWZiM2ZjZDc0OWU2OTQ2OTE0MzIzM2NhMmIxNGIxOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTA2NmYxNGI4MGQzNjRkNjQwMzJiMDVjYzEzN2NkNzljYTI0YmM4ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTUzOGNhNmRkZjc4ZDdlNWYyNGQyNmY0NmNjMjlkZTFhMDM0OGJkZmU4YTI5
|
10
|
+
MmRhMmIxNmMwYjIxYjg4NjJlMjkyZGQ4MGUyYzg3Njg4ZDQxZGM2MTUzNGRh
|
11
|
+
NWU0Y2ZkZTk0ZTRjMDE4OWFkODM4ZDRlYzBlMTZmYzYwYjc3Njg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGVhNzkwODUwN2RhMmE2NjJkMDE5Yzc5ZWNiNjhmOGVlMjY4YWRiMTEzOTll
|
14
|
+
MWZlYzAyNzNjMzkxYzNkZTM1ZDI1NmIzY2YyZGU4MmM1NzA5ZTFmNDU3MzA5
|
15
|
+
OGJmMTc2MzNiMGIzMmU2NjMzODFjZjU4NmM3MzdjY2IzZDA4MTA=
|
@@ -5,4 +5,10 @@ describe 'Predicates' do
|
|
5
5
|
expect(sequence('Stacy').find(matches?(/Stac/))).to eq(some('Stacy'))
|
6
6
|
expect(sequence('Raymond').find(matches?(/NotAwesome/))).to eq(none)
|
7
7
|
end
|
8
|
+
|
9
|
+
it 'should allow is' do
|
10
|
+
expect(sequence('Stuff').find(is?('Stuff'))).to eq(some('Stuff'))
|
11
|
+
expect(sequence('Stuff').find(equal_to?('Stuff'))).to eq(some('Stuff'))
|
12
|
+
expect(sequence('Stuff').find(is?('Nothing'))).to eq(none)
|
13
|
+
end
|
8
14
|
end
|