Commit 59a08923eb36a785904507d309fbce85f4ab4f2c
1 parent
0402708d
Exists in
master
and in
29 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 | 20 | end |
21 | 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 | 23 | private |
42 | 24 | |
43 | 25 | def read_fixture(action) | ... | ... |