Skip to content

Commit

Permalink
Bring AM tests back to green again.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 26, 2010
1 parent af43674 commit 9f63c4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
1 change: 0 additions & 1 deletion actionmailer/test/fixtures/nested/layouts/spam.html.erb

This file was deleted.

15 changes: 0 additions & 15 deletions actionmailer/test/old_base/mail_layout_test.rb
Expand Up @@ -51,16 +51,6 @@ def logout
end
end

class NestedLayoutMailer < ActionMailer::Base
layout 'nested/layouts/spam'

def signup
recipients 'test@localhost'
subject "You have a mail"
from "tester@example.com"
end
end

class LayoutMailerTest < Test::Unit::TestCase
def setup
set_delivery_method :test
Expand Down Expand Up @@ -155,9 +145,4 @@ def test_explicit_layout_exceptions
mail = ExplicitLayoutMailer.logout
assert_equal "You logged out", mail.body.to_s.strip
end

def test_nested_class_layout
mail = NestedLayoutMailer.signup
assert_equal "Nested Spammer layout We do not spam", mail.body.to_s.strip
end
end
4 changes: 3 additions & 1 deletion actionmailer/test/old_base/mail_render_test.rb
Expand Up @@ -68,7 +68,9 @@ def build_multipart_message(assigns = {})
end

def build_body_part(content_type, assigns, options = {})
render "#{template}.#{content_type}", :body => assigns
ActiveSupport::Deprecation.silence do
render "#{template}.#{content_type}", :body => assigns
end
end
end

Expand Down

0 comments on commit 9f63c4b

Please sign in to comment.