Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Nov 16, 2024
1 parent 7e94555 commit e01b26c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/models/fs/box_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e01b26c

Please sign in to comment.