Commit 7e66b3ee0c4e7c858202ca763d1464b6d6431343
1 parent
02430fc9
Exists in
master
and in
29 other branches
rails3: fix user mailer class name in tests
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
test/unit/email_activation_test.rb
... | ... | @@ -54,7 +54,7 @@ class EmailActivationTest < ActiveSupport::TestCase |
54 | 54 | |
55 | 55 | task = EmailActivation.new(:requestor => user.person, :target => Environment.default) |
56 | 56 | |
57 | - email = User::Mailer.activation_email_notify(user).deliver | |
57 | + email = UserMailer.activation_email_notify(user).deliver | |
58 | 58 | assert_match(/Welcome to #{task.requestor.environment.name} mail!/, email.subject) |
59 | 59 | end |
60 | 60 | ... | ... |
test/unit/user_mailer_test.rb
... | ... | @@ -14,7 +14,7 @@ class UserMailerTest < ActiveSupport::TestCase |
14 | 14 | should 'deliver activation email notify' do |
15 | 15 | assert_difference ActionMailer::Base.deliveries, :size do |
16 | 16 | u = create_user('some-user') |
17 | - User::Mailer.activation_email_notify(u).deliver | |
17 | + UserMailer.activation_email_notify(u).deliver | |
18 | 18 | end |
19 | 19 | end |
20 | 20 | ... | ... |