govuk_content_models 23.0.0 → 24.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +10 -0
- data/app/models/action.rb +8 -1
- data/app/models/edition.rb +5 -0
- data/app/models/user.rb +28 -2
- data/app/models/workflow.rb +20 -66
- data/app/traits/recordable_actions.rb +53 -0
- data/lib/govuk_content_models.rb +4 -5
- data/lib/govuk_content_models/action_processors.rb +23 -0
- data/lib/govuk_content_models/action_processors/approve_fact_check_processor.rb +6 -0
- data/lib/govuk_content_models/action_processors/approve_review_processor.rb +11 -0
- data/lib/govuk_content_models/action_processors/archive_processor.rb +6 -0
- data/lib/govuk_content_models/action_processors/assign_processor.rb +12 -0
- data/lib/govuk_content_models/action_processors/base_processor.rb +59 -0
- data/lib/govuk_content_models/action_processors/cancel_scheduled_publishing_processor.rb +6 -0
- data/lib/govuk_content_models/action_processors/create_edition_processor.rb +22 -0
- data/lib/govuk_content_models/action_processors/emergency_publish_processor.rb +6 -0
- data/lib/govuk_content_models/action_processors/new_version_processor.rb +23 -0
- data/lib/govuk_content_models/action_processors/publish_processor.rb +6 -0
- data/lib/govuk_content_models/action_processors/receive_fact_check_processor.rb +18 -0
- data/lib/govuk_content_models/action_processors/request_amendments_processor.rb +15 -0
- data/lib/govuk_content_models/action_processors/request_review_processor.rb +6 -0
- data/lib/govuk_content_models/action_processors/schedule_for_publishing_processor.rb +14 -0
- data/lib/govuk_content_models/action_processors/send_fact_check_processor.rb +14 -0
- data/lib/govuk_content_models/action_processors/skip_fact_check_processor.rb +6 -0
- data/lib/govuk_content_models/test_helpers/action_processor_helpers.rb +39 -0
- data/lib/govuk_content_models/version.rb +1 -1
- data/test/models/action_test.rb +13 -0
- data/test/models/edition_test.rb +87 -64
- data/test/models/user_test.rb +2 -2
- data/test/models/workflow_test.rb +160 -55
- data/test/test_helper.rb +2 -0
- metadata +25 -7
- data/app/models/workflow_actor.rb +0 -157
- data/test/models/workflow_actor_test.rb +0 -112
data/test/models/user_test.rb
CHANGED
@@ -92,8 +92,8 @@ class UserTest < ActiveSupport::TestCase
|
|
92
92
|
user = User.create(:name => "bob")
|
93
93
|
|
94
94
|
trans = user.create_edition(:transaction, title: "test answer", slug: "test", panopticon_id: @artefact.id)
|
95
|
-
|
96
|
-
|
95
|
+
request_review(user, trans)
|
96
|
+
refute approve_review(user, trans)
|
97
97
|
end
|
98
98
|
|
99
99
|
test "Edition becomes assigned to user when user is assigned an edition" do
|
@@ -29,12 +29,13 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
29
29
|
|
30
30
|
guide = user.create_edition(:guide, panopticon_id: @artefact.id, overview: "My Overview", title: "My Title", slug: "my-title", alternative_title: "My Other Title")
|
31
31
|
edition = guide
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
user
|
36
|
-
|
37
|
-
|
32
|
+
|
33
|
+
request_review(user, edition)
|
34
|
+
approve_review(other_user, edition)
|
35
|
+
send_fact_check(user, edition)
|
36
|
+
receive_fact_check(user, edition)
|
37
|
+
other_user.progress(edition, { request_type: :approve_fact_check, comment: "Looks good to me" })
|
38
|
+
user.progress(edition, { request_type: :publish, comment: "PUBLISHED!" })
|
38
39
|
return user, guide
|
39
40
|
end
|
40
41
|
|
@@ -47,11 +48,11 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
47
48
|
transaction.expectation_ids = [expectation.id]
|
48
49
|
transaction.save
|
49
50
|
|
50
|
-
|
51
|
+
request_review(user, transaction)
|
51
52
|
transaction.save
|
52
|
-
|
53
|
+
approve_review(other_user, transaction)
|
53
54
|
transaction.save
|
54
|
-
user.
|
55
|
+
user.progress(transaction, { request_type: :publish, comment: "Let's go"})
|
55
56
|
transaction.save
|
56
57
|
return user, transaction
|
57
58
|
end
|
@@ -113,7 +114,7 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
113
114
|
guide = template_guide
|
114
115
|
user = User.create(name:"Ben")
|
115
116
|
refute guide.in_review?
|
116
|
-
|
117
|
+
request_review(user, guide)
|
117
118
|
assert guide.in_review?
|
118
119
|
end
|
119
120
|
|
@@ -125,14 +126,14 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
125
126
|
edition = guide
|
126
127
|
|
127
128
|
assert edition.can_request_review?
|
128
|
-
|
129
|
+
request_review(user, edition)
|
129
130
|
refute edition.can_request_review?
|
130
131
|
assert edition.can_request_amendments?
|
131
|
-
|
132
|
+
request_amendments(other_user, edition)
|
132
133
|
refute edition.can_request_amendments?
|
133
|
-
|
134
|
+
request_review(user, edition)
|
134
135
|
assert edition.can_approve_review?
|
135
|
-
|
136
|
+
approve_review(other_user, edition)
|
136
137
|
assert edition.can_publish?
|
137
138
|
end
|
138
139
|
|
@@ -142,11 +143,11 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
142
143
|
|
143
144
|
edition = user.create_edition(:guide, panopticon_id: @artefact.id, overview: "My Overview", title: "My Title", slug: "my-title", alternative_title: "My Other Title")
|
144
145
|
|
145
|
-
|
146
|
-
|
147
|
-
|
146
|
+
request_review(user, edition)
|
147
|
+
approve_review(other_user, edition)
|
148
|
+
send_fact_check(user, edition)
|
148
149
|
|
149
|
-
assert other_user.
|
150
|
+
assert other_user.progress(edition, { request_type: :skip_fact_check, comment: 'Fact check not received in time' })
|
150
151
|
edition.reload
|
151
152
|
assert edition.can_publish?
|
152
153
|
assert edition.actions.detect { |e| e.request_type == 'skip_fact_check' }
|
@@ -160,10 +161,10 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
160
161
|
guide = user.create_edition(:guide, panopticon_id: FactoryGirl.create(:artefact).id, overview: "My Overview", title: "My Title", slug: "my-title", alternative_title: "My Other Title")
|
161
162
|
edition = guide
|
162
163
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
164
|
+
request_review(user, edition)
|
165
|
+
approve_review(other_user, edition)
|
166
|
+
send_fact_check(user, edition)
|
167
|
+
receive_fact_check(user, edition, "Text.<l>content that the SafeHtml validator would catch</l>")
|
167
168
|
|
168
169
|
assert_equal "Text.<l>content that the SafeHtml validator would catch</l>", edition.actions.last.comment
|
169
170
|
end
|
@@ -175,11 +176,11 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
175
176
|
guide = user.create_edition(:guide, panopticon_id: FactoryGirl.create(:artefact).id, overview: "My Overview", title: "My Title", slug: "my-title", alternative_title: "My Other Title")
|
176
177
|
edition = guide
|
177
178
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
179
|
+
request_review(user, edition)
|
180
|
+
approve_review(other_user, edition)
|
181
|
+
send_fact_check(user, edition)
|
182
|
+
receive_fact_check(user, edition, "Text.<l>content that the SafeHtml validator would catch</l>")
|
183
|
+
send_fact_check(user, edition, "Out of office reply triggered receive_fact_check")
|
183
184
|
|
184
185
|
assert(edition.actions.last.comment.include? "Out of office reply triggered receive_fact_check")
|
185
186
|
end
|
@@ -191,11 +192,12 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
191
192
|
guide = user.create_edition(:guide, panopticon_id: FactoryGirl.create(:artefact).id, overview: "My Overview", title: "My Title", slug: "my-title", alternative_title: "My Other Title")
|
192
193
|
edition = guide
|
193
194
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
195
|
+
request_review(user, edition)
|
196
|
+
approve_review(other_user, edition)
|
197
|
+
send_fact_check(user, edition)
|
198
|
+
request_amendments(other_user, edition)
|
198
199
|
|
200
|
+
assert_equal 'request_amendments', edition.actions.last.request_type
|
199
201
|
assert_equal "More amendments are required", edition.actions.last.comment
|
200
202
|
end
|
201
203
|
|
@@ -207,9 +209,9 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
207
209
|
guide = user.create_edition(:guide, panopticon_id: FactoryGirl.create(:artefact).id, overview: "My Overview", title: "My Title", slug: "my-title", alternative_title: "My Other Title")
|
208
210
|
edition = guide
|
209
211
|
|
210
|
-
|
211
|
-
|
212
|
-
|
212
|
+
request_review(user, edition)
|
213
|
+
approve_review(other_user, edition)
|
214
|
+
request_amendments(other_user, edition)
|
213
215
|
|
214
216
|
assert_equal "More amendments are required", edition.actions.last.comment
|
215
217
|
end
|
@@ -223,13 +225,13 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
223
225
|
|
224
226
|
assert_equal 0, guide.rejected_count
|
225
227
|
|
226
|
-
|
227
|
-
|
228
|
+
request_review(user, edition)
|
229
|
+
request_amendments(other_user, edition)
|
228
230
|
|
229
231
|
assert_equal 1, guide.rejected_count
|
230
232
|
|
231
|
-
|
232
|
-
|
233
|
+
request_review(user, edition)
|
234
|
+
approve_review(other_user, edition)
|
233
235
|
|
234
236
|
assert_equal 1, guide.rejected_count
|
235
237
|
end
|
@@ -241,9 +243,8 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
241
243
|
edition = guide
|
242
244
|
|
243
245
|
assert edition.can_request_review?
|
244
|
-
|
245
|
-
refute
|
246
|
-
refute user.can_request_amendments?(edition)
|
246
|
+
request_review(user, edition)
|
247
|
+
refute request_amendments(user, edition)
|
247
248
|
end
|
248
249
|
|
249
250
|
test "user should not be able to okay a guide they requested review for" do
|
@@ -253,8 +254,8 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
253
254
|
edition = guide
|
254
255
|
|
255
256
|
assert edition.can_request_review?
|
256
|
-
|
257
|
-
refute
|
257
|
+
request_review(user, edition)
|
258
|
+
refute approve_review(user, edition)
|
258
259
|
end
|
259
260
|
|
260
261
|
test "a new programme has drafts but isn't published" do
|
@@ -268,7 +269,7 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
268
269
|
user, other_user = template_users
|
269
270
|
|
270
271
|
refute programme.in_review?
|
271
|
-
|
272
|
+
request_review(user, programme)
|
272
273
|
assert programme.in_review?, "A review was not requested for this programme."
|
273
274
|
end
|
274
275
|
|
@@ -278,14 +279,14 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
278
279
|
edition = user.create_edition(:programme, panopticon_id: @artefact.id, title: "My title", slug: "my-slug")
|
279
280
|
|
280
281
|
assert edition.can_request_review?
|
281
|
-
|
282
|
+
request_review(user, edition)
|
282
283
|
refute edition.can_request_review?
|
283
284
|
assert edition.can_request_amendments?
|
284
|
-
|
285
|
+
request_amendments(other_user, edition)
|
285
286
|
refute edition.can_request_amendments?
|
286
|
-
|
287
|
+
request_review(user, edition)
|
287
288
|
assert edition.can_approve_review?
|
288
|
-
|
289
|
+
approve_review(other_user, edition)
|
289
290
|
assert edition.can_request_amendments?
|
290
291
|
assert edition.can_publish?
|
291
292
|
end
|
@@ -296,8 +297,8 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
296
297
|
edition = user.create_edition(:programme, panopticon_id: @artefact.id, title: "My title", slug: "my-slug")
|
297
298
|
|
298
299
|
assert edition.can_request_review?
|
299
|
-
|
300
|
-
refute
|
300
|
+
request_review(user, edition)
|
301
|
+
refute approve_review(user, edition)
|
301
302
|
end
|
302
303
|
|
303
304
|
test "you can only create a new edition from a published edition" do
|
@@ -311,7 +312,7 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
311
312
|
user, other_user = template_users
|
312
313
|
|
313
314
|
edition = user.create_edition(:programme, panopticon_id: @artefact.id, title: "My title", slug: "my-slug")
|
314
|
-
user.
|
315
|
+
user.progress(edition, { request_type: :archive })
|
315
316
|
assert_equal "archived", edition.state
|
316
317
|
end
|
317
318
|
|
@@ -337,14 +338,15 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
337
338
|
user_1, user_2 = template_users
|
338
339
|
edition = user_1.create_edition(:answer, panopticon_id: @artefact.id, title: "Answer foo", slug: "answer-foo")
|
339
340
|
edition.body = "body content"
|
341
|
+
|
340
342
|
user_1.assign(edition, user_2)
|
341
|
-
|
343
|
+
request_review(user_1, edition)
|
342
344
|
assert edition.in_review?
|
343
345
|
|
344
|
-
|
346
|
+
approve_review(user_2, edition)
|
345
347
|
assert edition.ready?
|
346
348
|
|
347
|
-
|
349
|
+
request_amendments(user_2, edition)
|
348
350
|
assert edition.amends_needed?
|
349
351
|
end
|
350
352
|
|
@@ -352,10 +354,113 @@ class WorkflowTest < ActiveSupport::TestCase
|
|
352
354
|
user = User.create(name: "Ben")
|
353
355
|
edition = template_guide
|
354
356
|
user.record_note(edition, 'this is an important note', Action::IMPORTANT_NOTE)
|
355
|
-
user
|
357
|
+
request_review(user, edition)
|
356
358
|
assert_equal edition.important_note.comment, 'this is an important note'
|
357
359
|
|
358
360
|
user.record_note(edition, nil, Action::IMPORTANT_NOTE_RESOLVED)
|
359
361
|
assert_nil edition.important_note
|
360
362
|
end
|
363
|
+
|
364
|
+
context "creating a new version of an edition" do
|
365
|
+
setup do
|
366
|
+
@user = User.new
|
367
|
+
@edition = FactoryGirl.create(:edition, state: :published)
|
368
|
+
end
|
369
|
+
|
370
|
+
should "return false if the edition is not published" do
|
371
|
+
@edition.update_attribute(:state, :in_review)
|
372
|
+
assert_nil @user.new_version(@edition)
|
373
|
+
end
|
374
|
+
|
375
|
+
should "record the action" do
|
376
|
+
new_version = @user.new_version(@edition)
|
377
|
+
assert_equal 'new_version', new_version.actions.last.request_type
|
378
|
+
end
|
379
|
+
|
380
|
+
should "return the new edition" do
|
381
|
+
new_version = @user.new_version(@edition)
|
382
|
+
assert_include new_version.previous_siblings.to_a, @edition
|
383
|
+
end
|
384
|
+
|
385
|
+
context "creating an edition of a different type" do
|
386
|
+
should "build a clone of a new type" do
|
387
|
+
assert_equal GuideEdition, @user.new_version(@edition, "GuideEdition").class
|
388
|
+
end
|
389
|
+
|
390
|
+
should "record the action" do
|
391
|
+
new_version = @user.new_version(@edition)
|
392
|
+
assert_equal 'new_version', new_version.actions.last.request_type
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
context "when building the edition fails" do
|
397
|
+
setup do
|
398
|
+
@edition.stubs(:build_clone).returns(nil)
|
399
|
+
end
|
400
|
+
|
401
|
+
should "not record the action" do
|
402
|
+
assert_no_difference '@edition.actions.count' do
|
403
|
+
@user.new_version(@edition)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
should "return nil" do
|
408
|
+
assert_nil @user.new_version(@edition)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
context "#receive_fact_check" do
|
414
|
+
setup do
|
415
|
+
@edition = FactoryGirl.create(:guide_edition_with_two_parts, state: :fact_check)
|
416
|
+
# Internal links must start with a forward slash eg [link text](/link-destination)
|
417
|
+
@edition.parts.first.update_attribute(:body,
|
418
|
+
"[register and tax your vehicle](registering-an-imported-vehicle)")
|
419
|
+
end
|
420
|
+
|
421
|
+
should "transition an edition with link validation errors to fact_check_received state" do
|
422
|
+
assert @edition.invalid?
|
423
|
+
receive_fact_check(User.new, @edition)
|
424
|
+
assert_equal "fact_check_received", @edition.reload.state
|
425
|
+
end
|
426
|
+
|
427
|
+
should "record the action" do
|
428
|
+
assert_difference '@edition.actions.count', 1 do
|
429
|
+
receive_fact_check(User.new, @edition)
|
430
|
+
end
|
431
|
+
assert_equal "receive_fact_check", @edition.actions.last.request_type
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
context "#schedule_for_publishing" do
|
436
|
+
setup do
|
437
|
+
@user = FactoryGirl.build(:user)
|
438
|
+
@publish_at = 1.day.from_now.utc
|
439
|
+
@activity_details = { publish_at: @publish_at, comment: "Go schedule !" }
|
440
|
+
end
|
441
|
+
|
442
|
+
should "return false when scheduling an already published edition" do
|
443
|
+
edition = FactoryGirl.create(:edition, state: 'published')
|
444
|
+
refute schedule_for_publishing(@user, edition, @activity_details)
|
445
|
+
end
|
446
|
+
|
447
|
+
should "schedule an edition for publishing if it is ready" do
|
448
|
+
edition = FactoryGirl.create(:edition, state: 'ready')
|
449
|
+
|
450
|
+
schedule_for_publishing(@user, edition, @activity_details)
|
451
|
+
|
452
|
+
assert edition.scheduled_for_publishing?
|
453
|
+
assert_equal @publish_at.to_i, edition.publish_at.to_i
|
454
|
+
end
|
455
|
+
|
456
|
+
should "record the action" do
|
457
|
+
edition = FactoryGirl.create(:edition, state: 'ready')
|
458
|
+
options = { comment: "Go schedule !", request_details: { scheduled_time: @publish_at } }
|
459
|
+
|
460
|
+
assert_difference 'edition.actions.count', 1 do
|
461
|
+
schedule_for_publishing(@user, edition, @activity_details)
|
462
|
+
end
|
463
|
+
assert_equal 'schedule_for_publishing', edition.actions.last.request_type
|
464
|
+
end
|
465
|
+
end
|
361
466
|
end
|
data/test/test_helper.rb
CHANGED
@@ -11,6 +11,7 @@ require "database_cleaner"
|
|
11
11
|
require "gds_api/test_helpers/panopticon"
|
12
12
|
require "webmock/test_unit"
|
13
13
|
require "govuk_content_models/test_helpers/factories"
|
14
|
+
require 'govuk_content_models/test_helpers/action_processor_helpers'
|
14
15
|
require "timecop"
|
15
16
|
|
16
17
|
# The models depend on a zone being set, so tests will fail if we don't
|
@@ -27,6 +28,7 @@ class ActiveSupport::TestCase
|
|
27
28
|
PROJECT_ROOT = File.expand_path("../..", __FILE__)
|
28
29
|
|
29
30
|
include GdsApi::TestHelpers::Panopticon
|
31
|
+
include GovukContentModels::TestHelpers::ActionProcessorHelpers
|
30
32
|
|
31
33
|
def without_metadata_denormalisation(*klasses, &block)
|
32
34
|
klasses.each {|klass| klass.any_instance.stubs(:denormalise_metadata).returns(true) }
|
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: 24.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-11-
|
12
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bson_ext
|
@@ -381,8 +381,8 @@ files:
|
|
381
381
|
- app/models/user.rb
|
382
382
|
- app/models/video_edition.rb
|
383
383
|
- app/models/workflow.rb
|
384
|
-
- app/models/workflow_actor.rb
|
385
384
|
- app/traits/attachable.rb
|
385
|
+
- app/traits/recordable_actions.rb
|
386
386
|
- app/traits/taggable.rb
|
387
387
|
- app/validators/browse_page_validator.rb
|
388
388
|
- app/validators/link_validator.rb
|
@@ -395,7 +395,25 @@ files:
|
|
395
395
|
- jenkins.sh
|
396
396
|
- jenkins_branches.sh
|
397
397
|
- lib/govuk_content_models.rb
|
398
|
+
- lib/govuk_content_models/action_processors.rb
|
399
|
+
- lib/govuk_content_models/action_processors/approve_fact_check_processor.rb
|
400
|
+
- lib/govuk_content_models/action_processors/approve_review_processor.rb
|
401
|
+
- lib/govuk_content_models/action_processors/archive_processor.rb
|
402
|
+
- lib/govuk_content_models/action_processors/assign_processor.rb
|
403
|
+
- lib/govuk_content_models/action_processors/base_processor.rb
|
404
|
+
- lib/govuk_content_models/action_processors/cancel_scheduled_publishing_processor.rb
|
405
|
+
- lib/govuk_content_models/action_processors/create_edition_processor.rb
|
406
|
+
- lib/govuk_content_models/action_processors/emergency_publish_processor.rb
|
407
|
+
- lib/govuk_content_models/action_processors/new_version_processor.rb
|
408
|
+
- lib/govuk_content_models/action_processors/publish_processor.rb
|
409
|
+
- lib/govuk_content_models/action_processors/receive_fact_check_processor.rb
|
410
|
+
- lib/govuk_content_models/action_processors/request_amendments_processor.rb
|
411
|
+
- lib/govuk_content_models/action_processors/request_review_processor.rb
|
412
|
+
- lib/govuk_content_models/action_processors/schedule_for_publishing_processor.rb
|
413
|
+
- lib/govuk_content_models/action_processors/send_fact_check_processor.rb
|
414
|
+
- lib/govuk_content_models/action_processors/skip_fact_check_processor.rb
|
398
415
|
- lib/govuk_content_models/require_all.rb
|
416
|
+
- lib/govuk_content_models/test_helpers/action_processor_helpers.rb
|
399
417
|
- lib/govuk_content_models/test_helpers/factories.rb
|
400
418
|
- lib/govuk_content_models/test_helpers/local_services.rb
|
401
419
|
- lib/govuk_content_models/version.rb
|
@@ -403,6 +421,7 @@ files:
|
|
403
421
|
- test/fixtures/contactotron_api_response.json
|
404
422
|
- test/fixtures/specialist_document_fixtures.rb
|
405
423
|
- test/fixtures/uploads/image.jpg
|
424
|
+
- test/models/action_test.rb
|
406
425
|
- test/models/artefact_action_test.rb
|
407
426
|
- test/models/artefact_external_link_test.rb
|
408
427
|
- test/models/artefact_tag_test.rb
|
@@ -438,7 +457,6 @@ files:
|
|
438
457
|
- test/models/travel_advice_edition_test.rb
|
439
458
|
- test/models/user_test.rb
|
440
459
|
- test/models/video_edition_test.rb
|
441
|
-
- test/models/workflow_actor_test.rb
|
442
460
|
- test/models/workflow_test.rb
|
443
461
|
- test/test_helper.rb
|
444
462
|
- test/traits/attachable_test.rb
|
@@ -464,7 +482,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
464
482
|
version: '0'
|
465
483
|
segments:
|
466
484
|
- 0
|
467
|
-
hash: -
|
485
|
+
hash: -1768769484193942965
|
468
486
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
469
487
|
none: false
|
470
488
|
requirements:
|
@@ -473,7 +491,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
473
491
|
version: '0'
|
474
492
|
segments:
|
475
493
|
- 0
|
476
|
-
hash: -
|
494
|
+
hash: -1768769484193942965
|
477
495
|
requirements: []
|
478
496
|
rubyforge_project:
|
479
497
|
rubygems_version: 1.8.23
|
@@ -484,6 +502,7 @@ test_files:
|
|
484
502
|
- test/fixtures/contactotron_api_response.json
|
485
503
|
- test/fixtures/specialist_document_fixtures.rb
|
486
504
|
- test/fixtures/uploads/image.jpg
|
505
|
+
- test/models/action_test.rb
|
487
506
|
- test/models/artefact_action_test.rb
|
488
507
|
- test/models/artefact_external_link_test.rb
|
489
508
|
- test/models/artefact_tag_test.rb
|
@@ -519,7 +538,6 @@ test_files:
|
|
519
538
|
- test/models/travel_advice_edition_test.rb
|
520
539
|
- test/models/user_test.rb
|
521
540
|
- test/models/video_edition_test.rb
|
522
|
-
- test/models/workflow_actor_test.rb
|
523
541
|
- test/models/workflow_test.rb
|
524
542
|
- test/test_helper.rb
|
525
543
|
- test/traits/attachable_test.rb
|