govuk_content_models 32.1.0 → 32.2.0
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/CHANGELOG.md +4 -0
- data/app/models/local_authority.rb +1 -0
- data/lib/govuk_content_models/version.rb +1 -1
- data/test/models/local_authority_test.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa9614ff18d6424badcb16a5a972bf66e13e121b
|
|
4
|
+
data.tar.gz: 106c23fef7501232f6193eaf7c8d34c03b04e11b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1137d9954ddf99cd1bb814638f23b77921520c06ed205dd83d0e2c7e666391bf0938433ea9f7c6a14e7c74dc4930656237782d690aab8097933c6d8323f6e8c
|
|
7
|
+
data.tar.gz: 3c161e491c8b70c2e3f6e28cbdf41cf1809dd126ef246fcc246139904d985c6c495d0e0f98f51df7140605b78d8ec5e0abaa0527262ba7971ded35ea04107373
|
data/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,7 @@ class LocalAuthority
|
|
|
15
15
|
field :contact_url, type: String
|
|
16
16
|
field :contact_phone, type: String
|
|
17
17
|
field :contact_email, type: String
|
|
18
|
+
field :homepage_url, type: String
|
|
18
19
|
|
|
19
20
|
validates_uniqueness_of :snac
|
|
20
21
|
validates_presence_of :snac, :local_directgov_id, :name, :tier
|
|
@@ -16,7 +16,8 @@ describe LocalAuthority do
|
|
|
16
16
|
contact_address: ["Line one", "line two", "line three"],
|
|
17
17
|
contact_url: "http://example.gov/contact",
|
|
18
18
|
contact_phone: "0000000000",
|
|
19
|
-
contact_email: "contact@example.gov"
|
|
19
|
+
contact_email: "contact@example.gov",
|
|
20
|
+
homepage_url: 'http://example.gov/')
|
|
20
21
|
authority = LocalAuthority.first
|
|
21
22
|
assert_equal "Example", authority.name
|
|
22
23
|
assert_equal "AA00", authority.snac
|
|
@@ -26,6 +27,7 @@ describe LocalAuthority do
|
|
|
26
27
|
assert_equal "http://example.gov/contact", authority.contact_url
|
|
27
28
|
assert_equal "0000000000", authority.contact_phone
|
|
28
29
|
assert_equal "contact@example.gov", authority.contact_email
|
|
30
|
+
assert_equal "http://example.gov/", authority.homepage_url
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
describe "validating local_interactions" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_content_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 32.
|
|
4
|
+
version: 32.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paul Battley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bson_ext
|