aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/test/unit/mail_ext/address_wrapping_test.rb
blob: c4eb1328efa691d5711bdd653ccdb93b97e8de43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require_relative "../../test_helper"

module MailExt
  class AddressWrappingTest < ActiveSupport::TestCase
    test "wrap" do
      needing_wrapping    = Mail::Address.wrap("david@basecamp.com")
      wrapping_not_needed = Mail::Address.wrap(Mail::Address.new("david@basecamp.com"))
      assert_equal needing_wrapping.address, wrapping_not_needed.address
    end
  end
end