unidom-party 1.9.2 → 1.9.3
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: be543e3e47b94dc526065e38b7a14a0e70ad3a5b
|
4
|
+
data.tar.gz: 855fdb823356d08c9685fe50a15173a1d126c888
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b282eae33ef7f326027d9dceb79c15043b8637a92843a5cf7c2c9e3a653d727d1a567809d8ba2450e482c4bc12419678eb5b451546b8184073b21db4da9aeedf
|
7
|
+
data.tar.gz: 0d06b1a09938aa4a78b986fe066767953a3a56409751fd519ad2366573404f18c80648411ac8569689a02bec359f2a495cd2d5780f1fd98fe83d7ca4847abe71
|
@@ -40,6 +40,16 @@ describe Unidom::Party::Collaborating, type: :model do
|
|
40
40
|
{ name: '1'*(name_max_length+1) } => 1,
|
41
41
|
{ name: 'A'*(name_max_length+1) } => 1
|
42
42
|
|
43
|
+
company_attributes = { name: 'Tesla' }
|
44
|
+
government_agency_attributes = { name: 'CD Gov' }
|
45
|
+
person_attributes = { name: 'Tim' }
|
46
|
+
shop_attributes = { name: 'WalMart' }
|
47
|
+
|
48
|
+
it_behaves_like 'belongs_to', model_attributes, :collaborator, Unidom::Party::Company, company_attributes
|
49
|
+
it_behaves_like 'belongs_to', model_attributes, :collaborator, Unidom::Party::GovernmentAgency, government_agency_attributes
|
50
|
+
it_behaves_like 'belongs_to', model_attributes, :collaborator, Unidom::Party::Person, person_attributes
|
51
|
+
it_behaves_like 'belongs_to', model_attributes, :collaborator, Unidom::Party::Shop, shop_attributes
|
52
|
+
|
43
53
|
end
|
44
54
|
|
45
55
|
end
|
@@ -26,7 +26,6 @@ describe Unidom::Party::PartyRelation, type: :model do
|
|
26
26
|
it_behaves_like 'belongs_to', friendship_attributes.merge({ source_party_id: Unidom::Common::NULL_UUID, source_party_type: 'Unidom::Party::Person' }),
|
27
27
|
:target_party, Unidom::Party::Person, tom_attributes
|
28
28
|
|
29
|
-
=begin
|
30
29
|
model_attributes = {
|
31
30
|
source_party_id: SecureRandom.uuid,
|
32
31
|
source_party_type: 'Unidom::Party::Person',
|
@@ -39,7 +38,6 @@ describe Unidom::Party::PartyRelation, type: :model do
|
|
39
38
|
|
40
39
|
it_behaves_like 'polymorphic scope', model_attributes, :source_party_is, :source_party, [ Unidom::Party::Company, Unidom::Party::GovernmentAgency, Unidom::Party::Person, Unidom::Party::Shop ]
|
41
40
|
it_behaves_like 'polymorphic scope', model_attributes, :target_party_is, :target_party, [ Unidom::Party::Company, Unidom::Party::GovernmentAgency, Unidom::Party::Person, Unidom::Party::Shop ]
|
42
|
-
=end
|
43
41
|
|
44
42
|
end
|
45
43
|
|
data/lib/unidom/party/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.3
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|