diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-09 13:25:35 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-09 13:25:35 +0000 |
commit | 0991be35600833304accc468942337128c068954 (patch) | |
tree | 630d72ab565489cb35cf1a8fbe509c6f14bf770d /test | |
parent | bad4654b7897c2a6a30313ba01184c12cf90adcb (diff) | |
download | redmine-0991be35600833304accc468942337128c068954.tar.gz redmine-0991be35600833304accc468942337128c068954.zip |
add version calendar functional test
git-svn-id: http://svn.redmine.org/redmine/trunk@20320 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/calendars_controller_test.rb | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index 95a214a7f..3e8ddafe6 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -33,7 +33,8 @@ class CalendarsControllerTest < Redmine::ControllerTest :issue_categories, :enumerations, :queries, - :users, :email_addresses + :users, :email_addresses, + :versions def test_show # Ensure that an issue to which a user is assigned is in the current @@ -103,6 +104,25 @@ class CalendarsControllerTest < Redmine::ControllerTest end end + def test_show_version + travel_to versions(:versions_002).effective_date + + get(:show, :params => {:project_id => 1}) + assert_response :success + + assert_select 'table.cal' do + assert_select 'tr' do + assert_select 'td' do + assert_select( + 'span.icon.icon-package' + ) do + assert_select 'a[href=?]', '/versions/2', :text => '1.0' + end + end + end + end + end + def test_show_should_run_custom_queries @query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC) get( |