2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-05-12 10:31:00 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Issue3550SetPretty, type: :db_migration, db_strategy: :reset do
|
|
|
|
context 'when cti gets migrated to stored pretty values' do
|
|
|
|
let!(:cti) { create(:'cti/log') }
|
|
|
|
|
|
|
|
before do
|
|
|
|
migrate
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'has from_pretty' do
|
|
|
|
expect(cti.preferences[:from_pretty]).to eq('+49 30 609854180')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'has to_pretty' do
|
|
|
|
expect(cti.preferences[:to_pretty]).to eq('+49 30 609811111')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|