Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/testaddress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -809,14 +809,14 @@ def test_bug_23043
def test_invalid_addresses()
# The display name isn't encoded -- bad, but we parse it.
validate_case\
["\322\315\322 \312\353\363\341 <bar@foo.invalid>",
[ { :name => "\322\315\322 \312\353\363\341",
:display_name => "\322\315\322 \312\353\363\341",
["\322\315\322 \312\353\363\341 <bar@foo.invalid>".force_encoding('ASCII-8BIT'),
[ { :name => "\322\315\322 \312\353\363\341".force_encoding('ASCII-8BIT'),
:display_name => "\322\315\322 \312\353\363\341".force_encoding('ASCII-8BIT'),
:address => 'bar@foo.invalid',
:comments => nil,
:domain => 'foo.invalid',
:local => 'bar',
:format => "\"\322\315\322 \312\353\363\341\" <bar@foo.invalid>",
:format => "\"\322\315\322 \312\353\363\341\" <bar@foo.invalid>".force_encoding('ASCII-8BIT'),
} ] ]
end

Expand Down
2 changes: 1 addition & 1 deletion test/testbase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
end

class TestBase < Test::Unit::TestCase
include Config
include RbConfig

attr_reader :scratch_dir

Expand Down
2 changes: 1 addition & 1 deletion test/testmessage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_add_part
def test_decode
message = RMail::Message.new

all_bytes = ''
all_bytes = ''.force_encoding('ASCII-8BIT')
0.upto(255) do |i|
all_bytes << i
end
Expand Down