diff --git a/app/models/mail_conf.rb b/app/models/mail_conf.rb index 3d80c46..9dee5f9 100644 --- a/app/models/mail_conf.rb +++ b/app/models/mail_conf.rb @@ -9,7 +9,7 @@ class MailConf if File.exists?(config_file) YAML.load_file(config_file) else - {} + { 'webmail_url' => 'http://webmail.example.com' } end end diff --git a/test/unit/user_mailer_test.rb b/test/unit/user_mailer_test.rb index edfeb65..e245dee 100644 --- a/test/unit/user_mailer_test.rb +++ b/test/unit/user_mailer_test.rb @@ -20,24 +20,6 @@ class UserMailerTest < Test::Unit::TestCase end end - should 'deliver notify when activate email' do - u = create_user('testuser') - assert_difference ActionMailer::Base.deliveries, :size do - u.enable_email = true - u.save! - end - end - - should 'not deliver notify when disactivate email' do - u = create_user('testuser') - u.enable_email = true - u.save! - assert_no_difference ActionMailer::Base.deliveries, :size do - u.enable_email = false - u.save! - end - end - private def read_fixture(action) -- libgit2 0.21.2