mirror of
https://github.com/redmine/redmine.git
synced 2026-06-17 01:50:19 +02:00
Admin settings screen split to tabs.
Email notification options moved to this view as a tab and LDAP list is accessible from the 'Authentication' tab. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1046 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -51,21 +51,9 @@ class AdminControllerTest < Test::Unit::TestCase
|
||||
assert IssueStatus.find_by_name('Nouveau')
|
||||
end
|
||||
|
||||
def test_get_mail_options
|
||||
get :mail_options
|
||||
assert_response :success
|
||||
assert_template 'mail_options'
|
||||
end
|
||||
|
||||
def test_post_mail_options
|
||||
post :mail_options, :settings => {'mail_from' => 'functional@test.foo'}
|
||||
assert_redirected_to 'admin/mail_options'
|
||||
assert_equal 'functional@test.foo', Setting.mail_from
|
||||
end
|
||||
|
||||
def test_test_email
|
||||
get :test_email
|
||||
assert_redirected_to 'admin/mail_options'
|
||||
assert_redirected_to 'settings/edit'
|
||||
mail = ActionMailer::Base.deliveries.last
|
||||
assert_kind_of TMail::Mail, mail
|
||||
user = User.find(1)
|
||||
|
||||
Reference in New Issue
Block a user