2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-11-16 12:14:22 +00:00
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Issue3851, type: :db_migration do
|
|
|
|
let(:follow_up_assignment) { ObjectManager::Attribute.for_object('Group').find_by(name: 'follow_up_assignment') }
|
|
|
|
let(:follow_up_possible) { ObjectManager::Attribute.for_object('Group').find_by(name: 'follow_up_possible') }
|
|
|
|
|
|
|
|
before do
|
|
|
|
migrate
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows field follow_up_assignment with correct default' do
|
|
|
|
expect(follow_up_assignment.data_option['default']).to eq('true')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows field follow_up_assignment required in create' do
|
2022-03-01 08:00:40 +00:00
|
|
|
expect(follow_up_assignment.screens['create']['-all-']['null']).to be(false)
|
2021-11-16 12:14:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows field follow_up_assignment required in edit' do
|
2022-03-01 08:00:40 +00:00
|
|
|
expect(follow_up_assignment.screens['edit']['-all-']['null']).to be(false)
|
2021-11-16 12:14:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows field follow_up_possible required in create' do
|
2022-03-01 08:00:40 +00:00
|
|
|
expect(follow_up_possible.screens['create']['-all-']['null']).to be(false)
|
2021-11-16 12:14:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows field follow_up_possible required in edit' do
|
2022-03-01 08:00:40 +00:00
|
|
|
expect(follow_up_possible.screens['edit']['-all-']['null']).to be(false)
|
2021-11-16 12:14:22 +00:00
|
|
|
end
|
|
|
|
end
|