has_vcards 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/app/models/has_vcards/phone_number.rb +1 -0
- data/lib/has_vcards/version.rb +1 -1
- data/spec/dummy/log/test.log +1173 -0
- data/spec/models/has_vcards/phone_number_spec.rb +8 -0
- metadata +3 -2
@@ -20,6 +20,14 @@ RSpec.describe HasVcards::PhoneNumber do
|
|
20
20
|
phone.phone_number_type = 'new_phone'
|
21
21
|
expect(phone.label).to eq 'New Phone'
|
22
22
|
end
|
23
|
+
|
24
|
+
it 'returns empty string if phone_number_type is empty' do
|
25
|
+
phone.phone_number_type = nil
|
26
|
+
expect(phone.label).to eq ''
|
27
|
+
|
28
|
+
phone.phone_number_type = ' '
|
29
|
+
expect(phone.label).to eq ''
|
30
|
+
end
|
23
31
|
end
|
24
32
|
|
25
33
|
describe '#to_s' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_vcards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Huerlimann (CyT)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -336,3 +336,4 @@ test_files:
|
|
336
336
|
- spec/dummy/config/initializers/mime_types.rb
|
337
337
|
- spec/dummy/config/initializers/inflections.rb
|
338
338
|
- spec/dummy/config/locales/en.yml
|
339
|
+
has_rdoc:
|