dorsale 3.14.1 → 3.14.2

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
  SHA256:
3
- metadata.gz: dad200bd30d5227629e98fbe51ae44e7858e4e7a4ee8239e7bbb5b7cd74ac329
4
- data.tar.gz: 45c60aa2c41c120a78bd20e8c2badd457bf0a46e3f7fc92e3b50dac42ee71655
3
+ metadata.gz: 684ded7d7d17769dd9697324cd1fa3a290b404b51b7a51311b168826aa3a1cd6
4
+ data.tar.gz: 403c9d809ead3265e93a051e84c2171a4b0a3029b13c79bd6eff77e44b66f5fa
5
5
  SHA512:
6
- metadata.gz: 5e41464b046478922d34ca0bba010e6a6015692f7edf997af4f09faacf7361eb3fc2c038ea06ea2e1f2e543881b153e31a3041bea6e989900663db3187e46ab9
7
- data.tar.gz: a783ded1a2489e94aed2a133278507bb58eae5a336a3ea3f056f6aa6d2efb0fb9886297ee148100aa65470b598b9b686ec216a935215d9fe33fd838b28fc9e19
6
+ metadata.gz: 66619bd184bdd40c4a147ca6545700660e6acd730a7fe0f5f36d88916b8afd0fa9b38d654bbff27188e2ca062a66b2cbd30c00bcfc97949375c9865aecab3dd7
7
+ data.tar.gz: 6e1a833f5a71ff360dd1a1a51f668030e5e9181295a162a8b66b760b5e5ece8cd47b78539252ab29297ac3aaeee1a987de69d5fdb85f45b09e2ef00fe3bbe8bf
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 3.14.2
6
+ - Fix CustomerVault factories
7
+
5
8
  ## 3.14.1
6
9
  - "Task snoozed" comment improvements
7
10
 
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "3.14.1"
2
+ VERSION = "3.14.2"
3
3
  end
@@ -8,9 +8,6 @@ FactoryBot.define do
8
8
  phone { "06 xx xx xx xx" }
9
9
  fax { "09 xx xx xx xx" }
10
10
  www { Faker::Internet.url }
11
-
12
- after(:create) do |corporation|
13
- create(:dorsale_address, addressable: corporation)
14
- end
11
+ address { build(:dorsale_address) }
15
12
  end
16
13
  end
@@ -12,9 +12,6 @@ FactoryBot.define do
12
12
  phone { "01 23 xx xx xx" }
13
13
  fax { "09 xx xx xx xx" }
14
14
  mobile { "06 xx xx xx xx" }
15
-
16
- after(:create) do |individual|
17
- create(:dorsale_address, addressable: individual)
18
- end
15
+ address { build(:dorsale_address) }
19
16
  end
20
17
  end
@@ -1,3 +1,5 @@
1
+ require "rails_helper"
2
+
1
3
  RSpec.describe ::Dorsale::CustomerVault::ActivityType, type: :model do
2
4
  it { is_expected.to validate_presence_of :name }
3
5
 
@@ -24,4 +24,10 @@ RSpec.describe ::Dorsale::CustomerVault::Corporation, type: :model do
24
24
  it { is_expected.to have_many(:comments).dependent(:destroy) }
25
25
 
26
26
  it { is_expected.to validate_presence_of :corporation_name }
27
+
28
+ it "should have a valid factory" do
29
+ corporation = create(:customer_vault_corporation)
30
+ expect(corporation).to be_valid
31
+ expect(Dorsale::Address.count).to eq 1
32
+ end
27
33
  end
@@ -2,8 +2,9 @@ require "rails_helper"
2
2
 
3
3
  RSpec.describe ::Dorsale::CustomerVault::Individual, :type => :model do
4
4
  it "should have a valid factory" do
5
- individual = build(:customer_vault_individual)
5
+ individual = create(:customer_vault_individual)
6
6
  expect(individual).to be_valid
7
+ expect(Dorsale::Address.count).to eq 1
7
8
  end
8
9
 
9
10
  it { is_expected.to have_one(:address).dependent(:destroy) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.1
4
+ version: 3.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails