unidom-visitor 1.13.3 → 1.13.4
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: 29f640ac2c868be349d60215948410335e3ac4e4
|
4
|
+
data.tar.gz: eea7eff56cadbc743c323b73a55c9fe617c95618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 961e6e04e663981774c00e5bcbf48fa2756a3f286073c976fa168057e934de74d3a768df1559d1f3280026dc2158bceeba4d161390f8de4c8eaad9e2a634c9ae
|
7
|
+
data.tar.gz: 7e5e5d922a7715fae18c9102b6db58c1223cc3db8bcb5b3c95509571165e59099b0b7ee25256fb2e6c00cbcbd1f916714d44292a93615ec1b11476a6acbf6b24
|
@@ -34,6 +34,14 @@ describe Unidom::Visitor::Guest, type: :model do
|
|
34
34
|
{ platform_specific_identification: '1'*(platform_specific_identification_max_length+1) } => 1,
|
35
35
|
{ platform_specific_identification: 'A'*(platform_specific_identification_max_length+1) } => 1
|
36
36
|
|
37
|
+
new_platform_specific_identification = 'ABCDEFGHIJKLMNOP'
|
38
|
+
it_behaves_like 'scope', :platform_specific_identification_is, [
|
39
|
+
{ attributes_collection: [ model_attributes ], count_diff: 1, args: [ model_attributes[:platform_specific_identification] ] },
|
40
|
+
{ attributes_collection: [ model_attributes ], count_diff: 0, args: [ new_platform_specific_identification ] },
|
41
|
+
{ attributes_collection: [ model_attributes.merge(platform_specific_identification: new_platform_specific_identification) ], count_diff: 0, args: [ model_attributes[:platform_specific_identification] ] },
|
42
|
+
{ attributes_collection: [ model_attributes.merge(platform_specific_identification: new_platform_specific_identification) ], count_diff: 1, args: [ new_platform_specific_identification ] },
|
43
|
+
]
|
44
|
+
|
37
45
|
end
|
38
46
|
|
39
47
|
end
|
@@ -18,6 +18,12 @@ describe Unidom::Visitor::Recognization, type: :model do
|
|
18
18
|
|
19
19
|
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
20
20
|
|
21
|
+
user_attributes = {}
|
22
|
+
guest_attributes = { platform_code: 'SITE', platform_specific_identification: '123456789012' }
|
23
|
+
|
24
|
+
it_behaves_like 'belongs_to', model_attributes, :visitor, Unidom::Visitor::User, user_attributes
|
25
|
+
it_behaves_like 'belongs_to', model_attributes, :visitor, Unidom::Visitor::Guest, guest_attributes
|
26
|
+
|
21
27
|
end
|
22
28
|
|
23
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-visitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|