govuk_content_models 17.0.0 → 17.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/app/models/edition.rb +1 -0
- data/lib/govuk_content_models/version.rb +1 -1
- data/test/models/edition_test.rb +8 -0
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/app/models/edition.rb
CHANGED
@@ -11,6 +11,7 @@ class Edition
|
|
11
11
|
field :business_proposition, type: Boolean, default: false
|
12
12
|
|
13
13
|
field :title, type: String
|
14
|
+
field :in_beta, type: Boolean, default: false
|
14
15
|
field :created_at, type: DateTime, default: lambda { Time.zone.now }
|
15
16
|
field :publish_at, type: DateTime
|
16
17
|
field :overview, type: String
|
data/test/models/edition_test.rb
CHANGED
@@ -54,6 +54,14 @@ class EditionTest < ActiveSupport::TestCase
|
|
54
54
|
assert a.errors[:title].any?
|
55
55
|
end
|
56
56
|
|
57
|
+
test "it is not in beta by default" do
|
58
|
+
refute FactoryGirl.build(:guide_edition).in_beta?
|
59
|
+
end
|
60
|
+
|
61
|
+
test "it can be in beta" do
|
62
|
+
assert FactoryGirl.build(:guide_edition, in_beta: true).in_beta?
|
63
|
+
end
|
64
|
+
|
57
65
|
test "it should give a friendly (legacy supporting) description of its format" do
|
58
66
|
a = LocalTransactionEdition.new
|
59
67
|
assert_equal "LocalTransaction", a.format
|
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: 17.
|
4
|
+
version: 17.1.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-08-
|
12
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bson_ext
|
@@ -460,7 +460,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
460
460
|
version: '0'
|
461
461
|
segments:
|
462
462
|
- 0
|
463
|
-
hash:
|
463
|
+
hash: 282022386068419216
|
464
464
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
465
465
|
none: false
|
466
466
|
requirements:
|
@@ -469,7 +469,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
469
|
version: '0'
|
470
470
|
segments:
|
471
471
|
- 0
|
472
|
-
hash:
|
472
|
+
hash: 282022386068419216
|
473
473
|
requirements: []
|
474
474
|
rubyforge_project:
|
475
475
|
rubygems_version: 1.8.23
|