Commit 59a08923eb36a785904507d309fbce85f4ab4f2c
1 parent
0402708d
Exists in
master
and in
22 other branches
ActionItem1210: fixing tests
Showing
2 changed files
with
1 additions
and
19 deletions
Show diff stats
app/models/mail_conf.rb
test/unit/user_mailer_test.rb
| @@ -20,24 +20,6 @@ class UserMailerTest < Test::Unit::TestCase | @@ -20,24 +20,6 @@ class UserMailerTest < Test::Unit::TestCase | ||
| 20 | end | 20 | end |
| 21 | end | 21 | end |
| 22 | 22 | ||
| 23 | - should 'deliver notify when activate email' do | ||
| 24 | - u = create_user('testuser') | ||
| 25 | - assert_difference ActionMailer::Base.deliveries, :size do | ||
| 26 | - u.enable_email = true | ||
| 27 | - u.save! | ||
| 28 | - end | ||
| 29 | - end | ||
| 30 | - | ||
| 31 | - should 'not deliver notify when disactivate email' do | ||
| 32 | - u = create_user('testuser') | ||
| 33 | - u.enable_email = true | ||
| 34 | - u.save! | ||
| 35 | - assert_no_difference ActionMailer::Base.deliveries, :size do | ||
| 36 | - u.enable_email = false | ||
| 37 | - u.save! | ||
| 38 | - end | ||
| 39 | - end | ||
| 40 | - | ||
| 41 | private | 23 | private |
| 42 | 24 | ||
| 43 | def read_fixture(action) | 25 | def read_fixture(action) |