govuk_content_models 27.2.0 → 28.0.0
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -7,14 +7,11 @@ class LocalTransactionEdition < Edition
|
|
7
7
|
field :introduction, type: String
|
8
8
|
field :more_information, type: String
|
9
9
|
field :need_to_know, type: String
|
10
|
-
field :minutes_to_complete, type: String
|
11
|
-
field :uses_government_gateway, type: Boolean
|
12
10
|
|
13
11
|
GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:introduction, :more_information, :need_to_know]
|
14
12
|
|
15
13
|
@fields_to_clone = [
|
16
|
-
:lgsl_code, :introduction, :more_information,
|
17
|
-
:minutes_to_complete, :need_to_know
|
14
|
+
:lgsl_code, :introduction, :more_information, :need_to_know
|
18
15
|
]
|
19
16
|
|
20
17
|
validate :valid_lgsl_code
|
data/app/models/place_edition.rb
CHANGED
@@ -5,8 +5,6 @@ class PlaceEdition < Edition
|
|
5
5
|
field :more_information, type: String
|
6
6
|
field :need_to_know, type: String
|
7
7
|
field :place_type, type: String
|
8
|
-
field :minutes_to_complete, type: String
|
9
|
-
field :uses_government_gateway, type: Boolean
|
10
8
|
|
11
9
|
GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:introduction, :more_information, :need_to_know]
|
12
10
|
|
@@ -7,14 +7,11 @@ class TransactionEdition < Edition
|
|
7
7
|
field :more_information, type: String
|
8
8
|
field :need_to_know, type: String
|
9
9
|
field :alternate_methods, type: String
|
10
|
-
field :minutes_to_complete, type: String
|
11
|
-
field :uses_government_gateway, type: Boolean
|
12
10
|
|
13
11
|
GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:introduction, :more_information, :alternate_methods, :need_to_know]
|
14
12
|
|
15
13
|
@fields_to_clone = [:introduction, :will_continue_on, :link,
|
16
14
|
:more_information, :alternate_methods,
|
17
|
-
:minutes_to_complete, :uses_government_gateway,
|
18
15
|
:need_to_know]
|
19
16
|
|
20
17
|
def indexable_content
|
@@ -112,10 +112,14 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
112
112
|
guide = template_guide
|
113
113
|
user = User.create(name:"Ben")
|
114
114
|
refute guide.in_review?
|
115
|
-
|
116
|
-
|
115
|
+
assert_nil guide.review_requested_at
|
116
|
+
|
117
|
+
now = Time.zone.now
|
118
|
+
Timecop.freeze(now) do
|
119
|
+
request_review(user, guide)
|
120
|
+
end
|
117
121
|
assert guide.in_review?
|
118
|
-
|
122
|
+
assert_equal now.to_i, guide.review_requested_at.to_i
|
119
123
|
end
|
120
124
|
|
121
125
|
test "a guide not in review cannot have a reviewer" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_content_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 28.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bson_ext
|
@@ -475,7 +475,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
475
475
|
version: '0'
|
476
476
|
segments:
|
477
477
|
- 0
|
478
|
-
hash:
|
478
|
+
hash: 1468707527952155644
|
479
479
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
480
480
|
none: false
|
481
481
|
requirements:
|
@@ -484,7 +484,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
484
484
|
version: '0'
|
485
485
|
segments:
|
486
486
|
- 0
|
487
|
-
hash:
|
487
|
+
hash: 1468707527952155644
|
488
488
|
requirements: []
|
489
489
|
rubyforge_project:
|
490
490
|
rubygems_version: 1.8.23
|