predicate 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/predicate/factory.rb +1 -0
- data/lib/predicate/version.rb +1 -1
- data/spec/test_predicate.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e429a75b5eeee0831bc034adf4f541277eff98aa
|
4
|
+
data.tar.gz: 7186388fb19923f92f5617a7c33e9e070111630f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3e1045f4fca26cc8eb11786bf211617f128294a2dbef01843061f16afed69395ba06c69a19e1e8762c81c6881d9fea535586609fac496f0c55659cdae89d59b
|
7
|
+
data.tar.gz: 5ff49f5827934a546e8df8b39e8dc95d8af354ccd82d0fef368d7bfa4e41ac3843ea95148e0305c84488103d4a9c6dec02826aff94039a4d8464503fa0256fc4
|
data/lib/predicate/factory.rb
CHANGED
data/lib/predicate/version.rb
CHANGED
data/spec/test_predicate.rb
CHANGED
@@ -58,6 +58,10 @@ describe "Predicate.in" do
|
|
58
58
|
subject{ Predicate.in(:x, [2, 3]) }
|
59
59
|
|
60
60
|
it_should_behave_like "a predicate"
|
61
|
+
|
62
|
+
it 'should lead to a contradiction if value list is empty' do
|
63
|
+
expect(Predicate.in(:x, [])).to eql(Predicate.contradiction)
|
64
|
+
end
|
61
65
|
end
|
62
66
|
|
63
67
|
describe "Predicate.among" do
|