Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just cannot get the tests pass, #305

Closed
chrism2671 opened this issue Nov 29, 2011 · 1 comment
Closed

Just cannot get the tests pass, #305

chrism2671 opened this issue Nov 29, 2011 · 1 comment

Comments

@chrism2671
Copy link

This is ruby 1.9.2p290 (darwin). I'm trying to sort an error where I get

NoMethodError (undefined method `encoding' for #<Hash:0x007fc608241528>)

when I'm trying to send attachments. My tests didn't get as far as encoding tests, see below. I tried this on several versions of Ruby (including p0). I'm not sure where I'm going wrong, can somebody help me get this to pass?

Pending:
Mail::AddressList parsing should handle malformed folding whitespace
# No reason given
# ./spec/mail/elements/address_list_spec.rb:70
Mail::AddressList functionality should handle a really nasty obsolete address list
# No reason given
# ./spec/mail/elements/address_list_spec.rb:116
Mail::Address parsing email addresses from the wild should handle |jdoe@test . example|
# No reason given
# ./spec/mail/elements/address_spec.rb:537
mail encoding using default encoding quoting token unsafe chars should quote the display name
# No reason given
# ./spec/mail/encoding_spec.rb:98
Mail::Encodings decoding a string and detecting the encoding type should handle Base64 encoded ISO-2022-JP string
# No reason given
# ./spec/mail/encodings_spec.rb:436
Test emails from RFC2822 should handle the rfc obsolete addressing
# No reason given
# ./spec/mail/example_emails_spec.rb:205
Test emails from RFC2822 should handle the rfc obsolete dates
# No reason given
# ./spec/mail/example_emails_spec.rb:221
Test emails from RFC2822 should handle the rfc obsolete whitespace email
# No reason given
# ./spec/mail/example_emails_spec.rb:242

Failures:

  1. Mail deliveries delivery_handler mail should not modify the Mail.deliveries object if using a delivery_handler
    Failure/Error: doing { @message.deliver }.should_not change(Mail::TestMailer, :deliveries)
    deliveries should not have changed, but did change from [#<Mail::Message:70257025829320, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>, #<Mail::Message:70257021754900, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>, #<Mail::Message:70257049910080, Multipart: false, Headers: <Date: Tue, 29 Nov 2011 12:27:05 +0000>, <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Message-ID: temp@test>, <Subject: Re: No way!>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>, #<Mail::Message:70257036461600, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>] to [#<Mail::Message:70257025829320, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>, #<Mail::Message:70257021754900, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>, #<Mail::Message:70257049910080, Multipart: false, Headers: <Date: Tue, 29 Nov 2011 12:27:05 +0000>, <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Message-ID: temp@test>, <Subject: Re: No way!>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>, #<Mail::Message:70257036461600, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>, #<Mail::Message:70257036326500, Multipart: false, Headers: <From: mikel@test.lindsaar.net>, <To: ada@test.lindsaar.net>, <Subject: Re: No way!>>]

    ./spec/mail/network_spec.rb:347:in `block (4 levels) in <top (required)>'

Finished in 20.89 seconds
1294 examples, 1 failure, 8 pending

Failed examples:

rspec ./spec/mail/network_spec.rb:345 # Mail deliveries delivery_handler mail should not modify the Mail.deliveries object if using a delivery_handler

@voxik
Copy link
Contributor

voxik commented Jan 31, 2012

Seems to be fixed by f0ea8e4

@jeremy jeremy closed this as completed Jan 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants