Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin De Pelseneer committed Aug 29, 2023
1 parent c5c5628 commit 3eb0729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/functional/assays_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ def check_fixtures_for_authorization_of_sops_and_datafiles_links

test 'should delete empty assay with linked sample type' do
person = FactoryBot.create(:person)
assay_sample_type = FactoryBot.create :linked_sample_type
assay_sample_type = FactoryBot.create :linked_sample_type, contributor: person
assay = FactoryBot.create(:assay,
policy:FactoryBot.create(:private_policy, permissions:[FactoryBot.create(:permission,contributor: person, access_type:Policy::EDITING)]),
sample_type: assay_sample_type,
Expand Down
4 changes: 2 additions & 2 deletions test/functional/studies_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1396,8 +1396,8 @@ def test_should_show_investigation_tab

test 'should delete empty study with linked sample type' do
person = FactoryBot.create(:person)
study_source_sample_type = FactoryBot.create :linked_sample_type
study_sample_sample_type = FactoryBot.create :linked_sample_type
study_source_sample_type = FactoryBot.create :linked_sample_type, contributor: person
study_sample_sample_type = FactoryBot.create :linked_sample_type, contributor: person
study = FactoryBot.create(:study,
policy:FactoryBot.create(:private_policy, permissions:[FactoryBot.create(:permission,contributor: person, access_type:Policy::EDITING)]),
sample_types: [study_source_sample_type, study_sample_sample_type],
Expand Down

0 comments on commit 3eb0729

Please sign in to comment.