Skip to content

Commit

Permalink
Yeah yeah, I fixed for ruby 1.9, but neglected to test with older rub…
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincorreli committed Jun 16, 2010
1 parent 61db0f0 commit 0a167c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/mail/encodings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@
mail[:subject].charset = 'koi8-r'
wrapped = mail[:subject].wrapped_value
unwrapped = Mail::Encodings.value_decode(wrapped)
orginial = original.force_encoding('koi8-r') if RUBY_VERSION >= "1.9"

unwrapped.gsub("Subject: ", "").should == original.force_encoding('koi8-r')
unwrapped.gsub("Subject: ", "").should == original
end
end

Expand Down

0 comments on commit 0a167c1

Please sign in to comment.