email_addresses_email_match_user_email_spec.rb 452 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe EmailAddressesEmailMatchUserEmail, type: :db_migration do
  4. before do
  5. change_column :email_addresses, :email, :string, limit: 250
  6. EmailAddress.reset_column_information
  7. end
  8. it 'changes length' do
  9. expect { migrate }
  10. .to change { EmailAddress.column_for_attribute(:email).sql_type_metadata.limit }.to(255)
  11. end
  12. end