Permalink
Browse files

Fixed failing tests, locked rr version. Fails with 0.10.9 and 0.10.11…

… with stack errors!?
  • Loading branch information...
1 parent 0defbe9 commit 3b0a7cfe8b1da1ed2aa4074c83abdb87f1d0b6dc @aiwilliams committed Apr 26, 2010
Showing with 5 additions and 4 deletions.
  1. +3 −3 spec/models/mail_list_spec.rb
  2. +2 −1 spec/spec_helper.rb
View
6 spec/models/mail_list_spec.rb
@@ -396,7 +396,7 @@ def process_post
it 'should append the list footer to text/plain emails' do
@post_tmail.body = "My Email\n\n\n\n\n"
mock(@manager_list).footer_content(is_a(MList::Message)) { 'my footer' }
- process_post.body.should == "My Email\n\n\n\n\n#{MList::MailList::FOOTER_BLOCK_START}\nmy footer\n#{MList::MailList::FOOTER_BLOCK_END}=\n"
+ process_post.body.should == "My Email\n\n\n\n\n#{MList::MailList::FOOTER_BLOCK_START}\nmy footer\n#{MList::MailList::FOOTER_BLOCK_END}"
end
it 'should append the list footer to multipart/alternative, text/plain part of emails' do
@@ -414,7 +414,7 @@ def process_post
it 'should handle whitespace well when appending footer' do
@post_tmail.body = "My Email"
mock(@manager_list).footer_content(is_a(MList::Message)) { 'my footer' }
- process_post.body.should == "My Email\n\n#{MList::MailList::FOOTER_BLOCK_START}\nmy footer\n#{MList::MailList::FOOTER_BLOCK_END}=\n"
+ process_post.body.should == "My Email\n\n#{MList::MailList::FOOTER_BLOCK_START}\nmy footer\n#{MList::MailList::FOOTER_BLOCK_END}"
end
it 'should strip out any existing text footers from the list' do
@@ -433,7 +433,7 @@ def process_post
this is without any in front
#{MList::MailList::FOOTER_BLOCK_END}
}
- process_post.body.should == "My Email\n\n#{MList::MailList::FOOTER_BLOCK_START}\nmy footer\n#{MList::MailList::FOOTER_BLOCK_END}=\n"
+ process_post.body.should == "My Email\n\n#{MList::MailList::FOOTER_BLOCK_START}\nmy footer\n#{MList::MailList::FOOTER_BLOCK_END}"
end
it 'should strip out any existing html footers from the list' do
View
3 spec/spec_helper.rb
@@ -1,5 +1,6 @@
require 'rubygems'
require 'spec'
+gem 'rr', '0.10.0'
require 'rr'
require 'ostruct'
@@ -73,4 +74,4 @@ def visualize_email(email, recipient_address)
end
require 'mlist'
-require 'mlist/email_server/fake'
+require 'mlist/email_server/fake'

0 comments on commit 3b0a7cf

Please sign in to comment.