Commit 73687ba77e7649b487a8d864e972736bafa1cc6e

Authored by Antonio Terceiro
1 parent b9707472

ActionItem918: removing unused code from mailer tests

test/unit/comment_notifier_test.rb
@@ -9,8 +9,6 @@ class CommentNotifierTest < Test::Unit::TestCase @@ -9,8 +9,6 @@ class CommentNotifierTest < Test::Unit::TestCase
9 ActionMailer::Base.perform_deliveries = true 9 ActionMailer::Base.perform_deliveries = true
10 ActionMailer::Base.deliveries = [] 10 ActionMailer::Base.deliveries = []
11 11
12 - @expected = TMail::Mail.new  
13 - @expected.set_content_type "text", "plain", { "charset" => CHARSET }  
14 end 12 end
15 13
16 should 'deliver mail after make aarticle commment' do 14 should 'deliver mail after make aarticle commment' do
test/unit/contact_sender_test.rb
@@ -9,8 +9,6 @@ class ContactSenderTest < Test::Unit::TestCase @@ -9,8 +9,6 @@ class ContactSenderTest < Test::Unit::TestCase
9 ActionMailer::Base.perform_deliveries = true 9 ActionMailer::Base.perform_deliveries = true
10 ActionMailer::Base.deliveries = [] 10 ActionMailer::Base.deliveries = []
11 11
12 - @expected = TMail::Mail.new  
13 - @expected.set_content_type "text", "plain", { "charset" => CHARSET }  
14 end 12 end
15 13
16 should 'be able to deliver mail' do 14 should 'be able to deliver mail' do
test/unit/pending_task_notifier_test.rb
@@ -9,8 +9,6 @@ class PendingTaskNotifierTest < Test::Unit::TestCase @@ -9,8 +9,6 @@ class PendingTaskNotifierTest < Test::Unit::TestCase
9 ActionMailer::Base.perform_deliveries = true 9 ActionMailer::Base.perform_deliveries = true
10 ActionMailer::Base.deliveries = [] 10 ActionMailer::Base.deliveries = []
11 11
12 - @expected = TMail::Mail.new  
13 - @expected.set_content_type "text", "plain", { "charset" => CHARSET }  
14 end 12 end
15 13
16 should 'be able to deliver notification' do 14 should 'be able to deliver notification' do
test/unit/task_mailer_test.rb
@@ -11,9 +11,6 @@ class TaskMailerTest < Test::Unit::TestCase @@ -11,9 +11,6 @@ class TaskMailerTest < Test::Unit::TestCase
11 ActionMailer::Base.perform_deliveries = true 11 ActionMailer::Base.perform_deliveries = true
12 ActionMailer::Base.deliveries = [] 12 ActionMailer::Base.deliveries = []
13 13
14 - @expected = TMail::Mail.new  
15 - @expected.set_content_type "text", "plain", { "charset" => CHARSET }  
16 - @expected.mime_version = '1.0'  
17 end 14 end
18 15
19 should 'be able to send a "task finished" message' do 16 should 'be able to send a "task finished" message' do
test/unit/user_mailer_test.rb
@@ -9,8 +9,6 @@ class UserMailerTest < Test::Unit::TestCase @@ -9,8 +9,6 @@ class UserMailerTest < Test::Unit::TestCase
9 ActionMailer::Base.perform_deliveries = true 9 ActionMailer::Base.perform_deliveries = true
10 ActionMailer::Base.deliveries = [] 10 ActionMailer::Base.deliveries = []
11 11
12 - @expected = TMail::Mail.new  
13 - @expected.set_content_type "text", "plain", { "charset" => CHARSET }  
14 end 12 end
15 13
16 14