mas-rad_core 0.0.51 → 0.0.52

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.
@@ -48,7 +48,7 @@ FactoryGirl.define do
48
48
  end
49
49
 
50
50
  factory :firm_with_subsidiaries do
51
- subsidiaries { create_list(:subsidiary, 3) }
51
+ subsidiaries { create_list(:subsidiary, 3, fca_number: fca_number) }
52
52
  end
53
53
 
54
54
  factory :firm_with_principal do
@@ -31,6 +31,12 @@ RSpec.describe Principal do
31
31
  end
32
32
  end
33
33
 
34
+ describe '#full_name' do
35
+ it 'returns a string containing the first and last name together' do
36
+ expect(principal.full_name).to eq("#{principal.first_name} #{principal.last_name}")
37
+ end
38
+ end
39
+
34
40
  it 'uses the token for ID purposes' do
35
41
  expect(principal.id).to eq(principal.token)
36
42
  expect(Principal.find(principal.token)).to eq(principal)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mas-rad_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51
4
+ version: 0.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lovell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-12 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails