issue_3550_set_pretty_spec.rb 537 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Issue3550SetPretty, db_strategy: :reset, type: :db_migration do
  4. context 'when cti gets migrated to stored pretty values' do
  5. let!(:cti) { create(:'cti/log') }
  6. before do
  7. migrate
  8. end
  9. it 'has from_pretty' do
  10. expect(cti.preferences[:from_pretty]).to eq('+49 30 609854180')
  11. end
  12. it 'has to_pretty' do
  13. expect(cti.preferences[:to_pretty]).to eq('+49 30 609811111')
  14. end
  15. end
  16. end