issue_3851_spec.rb 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Issue3851, type: :db_migration do
  4. let(:follow_up_assignment) { ObjectManager::Attribute.for_object('Group').find_by(name: 'follow_up_assignment') }
  5. let(:follow_up_possible) { ObjectManager::Attribute.for_object('Group').find_by(name: 'follow_up_possible') }
  6. before do
  7. migrate
  8. end
  9. it 'shows field follow_up_assignment with correct default' do
  10. expect(follow_up_assignment.data_option['default']).to eq('true')
  11. end
  12. it 'shows field follow_up_assignment required in create' do
  13. expect(follow_up_assignment.screens['create']['-all-']['null']).to be(false)
  14. end
  15. it 'shows field follow_up_assignment required in edit' do
  16. expect(follow_up_assignment.screens['edit']['-all-']['null']).to be(false)
  17. end
  18. it 'shows field follow_up_possible required in create' do
  19. expect(follow_up_possible.screens['create']['-all-']['null']).to be(false)
  20. end
  21. it 'shows field follow_up_possible required in edit' do
  22. expect(follow_up_possible.screens['edit']['-all-']['null']).to be(false)
  23. end
  24. end