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: 66c990cb3b0dec3c61442a581b2f051c70dfa64d
4
- data.tar.gz: 9a6071364368b7ed3ca0a24e353d10687abe78d0
3
+ metadata.gz: 29f640ac2c868be349d60215948410335e3ac4e4
4
+ data.tar.gz: eea7eff56cadbc743c323b73a55c9fe617c95618
5
5
  SHA512:
6
- metadata.gz: 3223aaefd649159514329ba040f35635a6ccbfca08a88662a2042feebb93ea0d80e93de690b9223a54113b7dc4fc837e28db72105cd422fe08da89c6871c3381
7
- data.tar.gz: e057f4eb77b5e02de4d1122e42106499bae904c1a2c648bc8eae47aa5d7a2f09a2388c4acaa1906ffb98f2422e9256da5ee94d1edd5a9135301e578f3e46a9c3
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
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Visitor
3
- VERSION = '1.13.3'.freeze
3
+ VERSION = '1.13.4'.freeze
4
4
  end
5
5
  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.3
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-08 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common