diff options
Diffstat (limited to 'test/functional/versions_controller_test.rb')
-rw-r--r-- | test/functional/versions_controller_test.rb | 5 |
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 |