ohm-sorted 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +9 -0
- data/lib/ohm/sorted.rb +4 -0
- data/ohm-sorted.gemspec +1 -1
- data/test/sorted_test.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTdhZWUxZTMxMjI1Y2E4OTliM2MzYjI2OTRmMDkxYjNlMzA1OTgzNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDMzNzZhMzZhMTIyMTRlODc0Njc1ZmQwNzg4NWY5YjY4NGE1NDVkMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDMyM2E5NjgxODMxNjI1MmZmMDRjZjU1YzFhNDJkNWRjMzliOTZjMjc2ZWY4
|
10
|
+
MTlkZDY5NmZhZjZmNjVlNGNmMTU2ZTRkM2Q1MTM5ODA1NjA0MWVmZjgyNzli
|
11
|
+
NWRlZjQzNjAyODFlNzQzNmY4MTM5NWYwMGI2M2ZhODA2NzA4Y2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzBjNmIwYTdhYmJjNDM3NTAwOTFhZDhhZDM5YTYyOTRhMGIzNDU5Y2ZlMWMx
|
14
|
+
Y2VmNmIzZGZlNGZkZmE1YWZmMDIzMmQ5NTczNzViYWRhMGVjN2ViMDJjNjU4
|
15
|
+
YTc5YmFhOTdmYWE1MTA1MzRlN2U3MWQ4M2I0NWMzN2Q2YmZmZjM=
|
data/CHANGELOG.md
CHANGED
data/lib/ohm/sorted.rb
CHANGED
data/ohm-sorted.gemspec
CHANGED
data/test/sorted_test.rb
CHANGED
@@ -145,4 +145,14 @@ class SortedTest < Test::Unit::TestCase
|
|
145
145
|
sorted_set = Post.sorted_find(:order, status: "draft")
|
146
146
|
assert_equal 1, sorted_set.size
|
147
147
|
end
|
148
|
+
|
149
|
+
def test_sorted_set_empty
|
150
|
+
sorted_set = Post.sorted_find(:order)
|
151
|
+
assert sorted_set.empty?
|
152
|
+
|
153
|
+
Post.create(order: 1)
|
154
|
+
|
155
|
+
sorted_set = Post.sorted_find(:order)
|
156
|
+
assert !sorted_set.empty?
|
157
|
+
end
|
148
158
|
end
|