diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2011-11-30 10:06:07 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2011-11-30 10:06:07 -0700 |
commit | b757663af7063eb2e1fa09546e415abe977be011 (patch) | |
tree | 399d9568418fb94e5ca6a0afc3a346cd5eb8ad30 /actionmailer/lib | |
parent | 3b07bb33e155006071b62cec53481af197df7ad9 (diff) | |
download | rails-b757663af7063eb2e1fa09546e415abe977be011.tar.gz rails-b757663af7063eb2e1fa09546e415abe977be011.tar.bz2 rails-b757663af7063eb2e1fa09546e415abe977be011.zip |
Using InstanceMethods in a Concern is deprecated
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/test_case.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/actionmailer/lib/action_mailer/test_case.rb b/actionmailer/lib/action_mailer/test_case.rb index c4de029694..4e48c0260f 100644 --- a/actionmailer/lib/action_mailer/test_case.rb +++ b/actionmailer/lib/action_mailer/test_case.rb @@ -15,6 +15,12 @@ module ActionMailer include TestHelper + included do + class_attribute :_mailer_class + setup :initialize_test_deliveries + setup :set_expected_mail + end + module ClassMethods def tests(mailer) case mailer @@ -42,8 +48,6 @@ module ActionMailer end end - module InstanceMethods - protected def initialize_test_deliveries @@ -71,16 +75,8 @@ module ActionMailer def read_fixture(action) IO.readlines(File.join(Rails.root, 'test', 'fixtures', self.class.mailer_class.name.underscore, action)) end - end - - included do - class_attribute :_mailer_class - setup :initialize_test_deliveries - setup :set_expected_mail - end end include Behavior - end end |