-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b0a5c0
commit 7ac27a3
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,7 @@ Style/IfUnlessModifier: | |
|
||
Style/RaiseArgs: | ||
EnforcedStyle: compact | ||
|
||
Style/StringLiterals: | ||
Exclude: | ||
- 'spec/**/*.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Mail | ||
class SES | ||
VERSION = '1.0.4' | ||
VERSION = '1.0.5' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,5 +129,32 @@ | |
|
||
it { expect(subject).to eq(exp) } | ||
end | ||
|
||
context 'when addresses are invalid' do | ||
let(:mail) do | ||
Mail.new do | ||
from '了承ございます <[email protected]' | ||
reply_to ['テスト@test.com', 'A@b@[email protected]', '[email protected]', '[email protected]'] | ||
to ['mailto:[email protected]', ''] | ||
cc ['<[email protected]'] | ||
body 'This is the body' | ||
end | ||
end | ||
|
||
let(:exp) do | ||
{ | ||
from_email_address: '=?UTF-8?B?5LqG5om/44GU44GW44GE44G+44GZ?= <[email protected]', | ||
reply_to_addresses: ["=?UTF-8?B?44OG44K544OIQHRlc3QuY29t?=", "A@b@[email protected]", "[email protected]", "[email protected]"], | ||
destination: { | ||
to_addresses: ['mailto:[email protected]', ''], | ||
cc_addresses: ['<[email protected]'], | ||
bcc_addresses: [] | ||
}, | ||
content: { raw: { data: 'Fixed message body' } } | ||
} | ||
end | ||
|
||
it { expect(subject).to eq(exp) } | ||
end | ||
end | ||
end |