Show version status as badge in rodmap#index and roadmap#show (#29391).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18053 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-04-09 14:48:15 +00:00
parent 766452e841
commit d953242e52
4 changed files with 22 additions and 3 deletions

View File

@@ -36,7 +36,9 @@ class VersionsControllerTest < Redmine::ControllerTest
assert_response :success
# Version with no date set appears
assert_select 'h3', :text => Version.find(3).name
assert_select 'h3', :text => "#{Version.find(3).name}"
assert_select 'span[class=?]', 'badge badge-status-open', :text => 'open'
# Completed version doesn't appear
assert_select 'h3', :text => Version.find(1).name, :count => 0
@@ -101,6 +103,7 @@ class VersionsControllerTest < Redmine::ControllerTest
assert_response :success
assert_select 'h2', :text => /1.0/
assert_select 'span[class=?]', 'badge badge-status-locked', :text => 'locked'
end
def test_show_issue_calculations_should_take_into_account_only_visible_issues