@@ -74,6 +74,15 class AdminControllerTest < ActionController::TestCase | |||
|
74 | 74 | assert IssueStatus.find_by_name('Nouveau') |
|
75 | 75 | end |
|
76 | 76 | |
|
77 | def test_load_default_configuration_data_should_rescue_error | |
|
78 | delete_configuration_data | |
|
79 | Redmine::DefaultData::Loader.stubs(:load).raises(Exception.new("Something went wrong")) | |
|
80 | post :default_configuration, :lang => 'fr' | |
|
81 | assert_response :redirect | |
|
82 | assert_not_nil flash[:error] | |
|
83 | assert_match /Something went wrong/, flash[:error] | |
|
84 | end | |
|
85 | ||
|
77 | 86 | def test_test_email |
|
78 | 87 | get :test_email |
|
79 | 88 | assert_redirected_to '/settings/edit?tab=notifications' |
General Comments 0
You need to be logged in to leave comments.
Login now