From e01b26c93c28aa6c02c5b8060e8b0224c59841e3 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Sat, 16 Nov 2024 14:34:58 +0100 Subject: [PATCH] Update tests --- test/models/fs/box_test.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/models/fs/box_test.rb b/test/models/fs/box_test.rb index edf8b861..c9221af3 100644 --- a/test/models/fs/box_test.rb +++ b/test/models/fs/box_test.rb @@ -11,21 +11,22 @@ class Fs::BoxTest < ActiveSupport::TestCase name: 'Test box', short_name: 'FS TB', uri: 'dic://sk/0246802', - type: 'Fs::Box' + type: 'Fs::Box', + api_connection: api_connections(:fs_api_connection1) ) assert box.reload.syncable end test "#after_create callback sets syncable value to false if tenant fs_sync feature is disabled" do - tenant = tenants(:ssd) - tenant.disable_feature(:fs_sync) + tenant = tenants(:solver) box = tenant.boxes.create( name: 'Test box', short_name: 'FS TB', uri: 'dic://sk/0246802', - type: 'Fs::Box' + type: 'Fs::Box', + api_connection: api_connections(:fs_api_connection2) ) assert_not box.reload.syncable