mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 08:51:13 +00:00
fix source indent of AdminControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20081 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a9aea31657
commit
8df1fc3544
@ -45,18 +45,24 @@ class AdminControllerTest < Redmine::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_projects_with_status_filter
|
def test_projects_with_status_filter
|
||||||
get :projects, :params => {
|
get(
|
||||||
|
:projects,
|
||||||
|
:params => {
|
||||||
:status => 1
|
:status => 1
|
||||||
}
|
}
|
||||||
|
)
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_select 'tr.project.closed', 0
|
assert_select 'tr.project.closed', 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_projects_with_name_filter
|
def test_projects_with_name_filter
|
||||||
get :projects, :params => {
|
get(
|
||||||
|
:projects,
|
||||||
|
:params => {
|
||||||
:name => 'store',
|
:name => 'store',
|
||||||
:status => ''
|
:status => ''
|
||||||
}
|
}
|
||||||
|
)
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
assert_select 'tr.project td.name', :text => 'OnlineStore'
|
assert_select 'tr.project td.name', :text => 'OnlineStore'
|
||||||
@ -65,9 +71,12 @@ class AdminControllerTest < Redmine::ControllerTest
|
|||||||
|
|
||||||
def test_load_default_configuration_data
|
def test_load_default_configuration_data
|
||||||
delete_configuration_data
|
delete_configuration_data
|
||||||
post :default_configuration, :params => {
|
post(
|
||||||
|
:default_configuration,
|
||||||
|
:params => {
|
||||||
:lang => 'fr'
|
:lang => 'fr'
|
||||||
}
|
}
|
||||||
|
)
|
||||||
assert_response :redirect
|
assert_response :redirect
|
||||||
assert_nil flash[:error]
|
assert_nil flash[:error]
|
||||||
assert IssueStatus.find_by_name('Nouveau')
|
assert IssueStatus.find_by_name('Nouveau')
|
||||||
@ -76,9 +85,12 @@ class AdminControllerTest < Redmine::ControllerTest
|
|||||||
def test_load_default_configuration_data_should_rescue_error
|
def test_load_default_configuration_data_should_rescue_error
|
||||||
delete_configuration_data
|
delete_configuration_data
|
||||||
Redmine::DefaultData::Loader.stubs(:load).raises(StandardError.new("Something went wrong"))
|
Redmine::DefaultData::Loader.stubs(:load).raises(StandardError.new("Something went wrong"))
|
||||||
post :default_configuration, :params => {
|
post(
|
||||||
|
:default_configuration,
|
||||||
|
:params => {
|
||||||
:lang => 'fr'
|
:lang => 'fr'
|
||||||
}
|
}
|
||||||
|
)
|
||||||
assert_response :redirect
|
assert_response :redirect
|
||||||
assert_not_nil flash[:error]
|
assert_not_nil flash[:error]
|
||||||
assert_match /Something went wrong/, flash[:error]
|
assert_match /Something went wrong/, flash[:error]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user