Commit 3aa7898c30715cb3288fca845b6a43a0a5f63716
1 parent
11891dbf
Exists in
staging
and in
42 other branches
user_mailer_test: remove randomness from test
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
test/unit/user_mailer_test.rb
| ... | ... | @@ -11,11 +11,9 @@ class UserMailerTest < ActiveSupport::TestCase |
| 11 | 11 | |
| 12 | 12 | end |
| 13 | 13 | |
| 14 | - | |
| 15 | 14 | should 'deliver activation email notify' do |
| 16 | 15 | assert_difference ActionMailer::Base.deliveries, :size do |
| 17 | - u = Person.find(:first).user | |
| 18 | - u.environment = Environment.default | |
| 16 | + u = create_user('some_user') | |
| 19 | 17 | User::Mailer.deliver_activation_email_notify(u) |
| 20 | 18 | end |
| 21 | 19 | end | ... | ... |