From 6bd60574731faf05c2f09a5c3877935c85a8e61e Mon Sep 17 00:00:00 2001 From: Kevin De Pelseneer Date: Wed, 15 May 2024 08:24:50 +0200 Subject: [PATCH] Create ISA tag factories for isa_assays_controller_test --- test/functional/isa_assays_controller_test.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/functional/isa_assays_controller_test.rb b/test/functional/isa_assays_controller_test.rb index ba746b6d70..c2e061bb54 100644 --- a/test/functional/isa_assays_controller_test.rb +++ b/test/functional/isa_assays_controller_test.rb @@ -8,6 +8,23 @@ class IsaAssaysControllerTest < ActionController::TestCase def setup login_as FactoryBot.create :user + + # Create all isa_tag factories + @source_isa_tag = FactoryBot.create(:source_isa_tag) + @source_characteristic_isa_tag = FactoryBot.create(:source_characteristic_isa_tag) + + @sample_isa_tag = FactoryBot.create(:sample_isa_tag) + @sample_characteristic_isa_tag = FactoryBot.create(:sample_characteristic_isa_tag) + + @protocol_isa_tag = FactoryBot.create(:protocol_isa_tag) + @parameter_value_isa_tag = FactoryBot.create(:parameter_value_isa_tag) + + @other_material_isa_tag = FactoryBot.create(:other_material_isa_tag) + @other_material_characteristic_isa_tag = FactoryBot.create(:other_material_characteristic_isa_tag) + + @data_file_isa_tag = FactoryBot.create(:data_file_isa_tag) + @data_file_comment_isa_tag = FactoryBot.create(:data_file_comment_isa_tag) + end test 'should get new' do