Skip to content

Commit

Permalink
Updates unit tests to have creators
Browse files Browse the repository at this point in the history
  • Loading branch information
fherreazcue authored and stuzart committed Sep 28, 2023
1 parent 59ebe1e commit e3c253d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/snapshot_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class SnapshotTest < ActiveSupport::TestCase
contributor = FactoryBot.create(:person)
User.current_user = contributor.user

@investigation = FactoryBot.create(:investigation, title: 'i1', description: 'not blank',
policy: FactoryBot.create(:downloadable_public_policy), contributor:contributor)
@investigation = FactoryBot.create(:investigation, title: 'i1', description: 'not blank', contributor: contributor,
policy: FactoryBot.create(:downloadable_public_policy), creators: [contributor])
@study = FactoryBot.create(:study, title: 's1', investigation: @investigation, contributor: @investigation.contributor,
policy: FactoryBot.create(:downloadable_public_policy))
policy: FactoryBot.create(:downloadable_public_policy), creators: [contributor])
@assay = FactoryBot.create(:assay, title: 'a1', study: @study, contributor: @investigation.contributor,
policy: FactoryBot.create(:downloadable_public_policy))
policy: FactoryBot.create(:downloadable_public_policy), creators: [contributor])
@assay2 = FactoryBot.create(:assay, title: 'a2', study: @study, contributor: @investigation.contributor,
policy: FactoryBot.create(:downloadable_public_policy))
policy: FactoryBot.create(:downloadable_public_policy), creators: [contributor])
@data_file = FactoryBot.create(:data_file, title: 'df1', contributor: @investigation.contributor,
content_blob: FactoryBot.create(:doc_content_blob, original_filename: 'word.doc'),
policy: FactoryBot.create(:downloadable_public_policy))
Expand Down

0 comments on commit e3c253d

Please sign in to comment.