mas-rad_core 0.0.51 → 0.0.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/principal.rb +4 -0
- data/lib/mas/rad_core/version.rb +1 -1
- data/spec/dummy/log/test.log +57137 -0
- data/spec/factories/firm.rb +1 -1
- data/spec/models/principal_spec.rb +6 -0
- metadata +2 -2
data/spec/factories/firm.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|