Permalink
Browse files

reproduced error "undefined method domain for #<Treetop::Runtime::Syn…

…taxNode:0x101a434e8>"
  • Loading branch information...
1 parent 69442f4 commit fe45b7656cc9ba6e9b212af983e2967a7b08781b Karl committed Dec 14, 2010
Showing with 5 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 spec/mail/elements/address_spec.rb
View
@@ -9,3 +9,4 @@ spec/fixtures/emails/failed_emails/
.rvmrc
*.rbc
*.swp
+.idea
@@ -37,6 +37,10 @@
end
end
+ it "should allow for funky spammy address with no domain" do
+ Mail::Address.new('"-Earnings...Notification-" <vodacom.co.rs>').address.should == nil
+ end
+
it "should give it's address back on :to_s if there is no display name" do
parse_text = 'test@lindsaar.net'
result = 'test@lindsaar.net'

0 comments on commit fe45b76

Please sign in to comment.