forest_liana 9.20.6 → 9.20.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed69fd6aba8fea8a03a02738a6f9ca6e75ae334980e501470dbabe1d58c37497
|
|
4
|
+
data.tar.gz: a6439711199628972e57f782968244c096566919801510d2193e3d16fbe5d800
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6101bb2d0ea3dfe2b3944cdf5d2ca3391ecd26450653517dd30553ffd4075dcb0cb23b6659996303259f6bd931c8054a58986f9337adc5417f94df8f1aac8b2
|
|
7
|
+
data.tar.gz: 3de7e6bc1710e6e8f8e1c8b1857775091e7d5d707d57c9f7f4dd1a993c7fbac111e350a88d4623e90357b8815aaf74a1de6a01710c01a81bd039b465ca19f600
|
data/lib/forest_liana/version.rb
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
module ForestLiana
|
|
2
2
|
describe SchemaAdapter do
|
|
3
|
+
describe '#get_type_for' do
|
|
4
|
+
let(:adapter) { described_class.new(Tree) }
|
|
5
|
+
|
|
6
|
+
def column_of_type(type)
|
|
7
|
+
double('Column', name: 'some_column', type: type, array: false)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
it 'maps a timestamptz column to the Date type' do
|
|
11
|
+
expect(adapter.send(:get_type_for, column_of_type(:timestamptz))).to eq 'Date'
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it 'maps a timestamp column to the Date type' do
|
|
15
|
+
expect(adapter.send(:get_type_for, column_of_type(:timestamp))).to eq 'Date'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it 'still maps a datetime column to the Date type' do
|
|
19
|
+
expect(adapter.send(:get_type_for, column_of_type(:datetime))).to eq 'Date'
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
3
23
|
describe 'perform' do
|
|
4
24
|
context 'with polymorphic association' do
|
|
5
25
|
it 'should define the association with the referenced models' do
|