table_sortable 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f24492d5149ae185d7a0cafc28d60b02f544115
|
4
|
+
data.tar.gz: 7a53734f7978c6e6a50a9f3ef40cb0e460828840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cabadd6e860b2c77fe859a32fd4ecedceefe1ec0ee817978cf0f5f4297a1f88942f6878360322baff2b00fb6a3fa54624c0317690366413fa7cc7b1e48f0196f
|
7
|
+
data.tar.gz: 1852e2745920202d8b8e792caac7aee8297dee9ede9d54c3c93bce531c522e3beb568595c700504f3ea1011dd2dbf557525a6ff76f66d8fb934e5ddae0cbf70a
|
data/lib/table_sortable.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module TableSortable
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
2
|
+
VERSION = "0.1.5"
|
3
|
+
end
|
@@ -48,4 +48,13 @@ describe TableSortable::Controller do
|
|
48
48
|
expect(populated_controller.send(:sort_order)).to eq [:column_with_sql_procs_a, :column_with_sql_procs_b, :column_with_array_procs]
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
context 'filter_and_sort' do
|
53
|
+
it 'should run' do
|
54
|
+
controller.define_column :a
|
55
|
+
result = controller.send(:filter_and_sort, [{a: 3}, {a: 2}, {a: 1}])
|
56
|
+
p result
|
57
|
+
expect(1).to eq 2
|
58
|
+
end
|
59
|
+
end
|
51
60
|
end
|