summaryrefslogtreecommitdiffstats
path: root/test/functional/versions_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-09 14:48:15 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-09 14:48:15 +0000
commitd953242e521592b84d4d2fe4378ceb127ec4eda3 (patch)
tree2b097acdd3ae378bdefb9f73cb3095e53ff446af /test/functional/versions_controller_test.rb
parent766452e84186eb2d9a1d11b0477b68398ba07a96 (diff)
downloadredmine-d953242e521592b84d4d2fe4378ceb127ec4eda3.tar.gz
redmine-d953242e521592b84d4d2fe4378ceb127ec4eda3.zip
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
Diffstat (limited to 'test/functional/versions_controller_test.rb')
-rw-r--r--test/functional/versions_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index fc9e2ac60..b827a1fd3 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -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