govuk_content_models 17.1.0 → 17.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.
- data/CHANGELOG.md +4 -0
- data/app/models/artefact.rb +0 -1
- data/lib/govuk_content_models/version.rb +1 -1
- data/test/models/artefact_test.rb +7 -0
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/app/models/artefact.rb
CHANGED
|
@@ -552,6 +552,13 @@ class ArtefactTest < ActiveSupport::TestCase
|
|
|
552
552
|
]
|
|
553
553
|
assert_equal expected, hash['tags']
|
|
554
554
|
end
|
|
555
|
+
|
|
556
|
+
should "omit non-existent tags referenced from the tag_ids array" do
|
|
557
|
+
@a.tag_ids << 'batman'
|
|
558
|
+
hash = @a.as_json
|
|
559
|
+
|
|
560
|
+
assert_equal %w(justice businesslink), hash['tags'].map {|t| t[:id] }
|
|
561
|
+
end
|
|
555
562
|
end
|
|
556
563
|
end
|
|
557
564
|
end
|
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.1.
|
|
4
|
+
version: 17.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -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: -1314728931253706889
|
|
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: -1314728931253706889
|
|
473
473
|
requirements: []
|
|
474
474
|
rubyforge_project:
|
|
475
475
|
rubygems_version: 1.8.23
|