Sha256: e5065871f32d72a2ccd30f3d4650497c023fb6c10fcfa1dafa47291b35461d41
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe 'AddressContainer' do it "should allow you to append an address to an address field result" do m = Mail.new("To: mikel@test.lindsaar.net") m.to.should == ['mikel@test.lindsaar.net'] m.to << 'bob@test.lindsaar.net' m.to.should == ['mikel@test.lindsaar.net', 'bob@test.lindsaar.net'] end it "should handle complex addresses correctly" do m = Mail.new("From: mikel@test.lindsaar.net") m.from.should == ['mikel@test.lindsaar.net'] m.from << '"Ada Lindsaar" <ada@test.lindsaar.net>, bob@test.lindsaar.net' m.from.should == ['mikel@test.lindsaar.net', 'ada@test.lindsaar.net', 'bob@test.lindsaar.net'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-mail_exception-0.0.1 | vendor/mail/spec/mail/fields/common/address_container_spec.rb |