1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

code layout clean up test/functional/issue_statuses_controller_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18627 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-08 14:09:51 +00:00
parent ae58969f64
commit 73b81ddef0

View File

@ -48,14 +48,14 @@ class IssueStatusesControllerTest < Redmine::ControllerTest
def test_index_should_show_warning_when_no_workflow_is_defined
status = IssueStatus.new :name => "No workflow"
status.save!
get :index
assert_response :success
assert_select 'table.issue_statuses tbody' do
assert_select 'tr:not(:last-of-type) span.icon-warning', :count => 0
assert_select 'tr:last-of-type' do
assert_select 'td.name', :text => status.name
assert_select 'td:nth-of-type(3) span.icon-warning', :text => /#{I18n.t(:text_status_no_workflow)}/
assert_select 'td:nth-of-type(3) span.icon-warning',
:text => /#{I18n.t(:text_status_no_workflow)}/
end
end
end