summaryrefslogtreecommitdiffstats
path: root/test/functional/calendars_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-08 13:02:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-08 13:02:57 +0000
commita4a3d292bc11372ff5d0a48c7bf5327d958e063f (patch)
tree8203b34eef5487b7bbe1db22a89ab7a62b047c14 /test/functional/calendars_controller_test.rb
parent2f91c59439f122a9ce29afb19e0d14ff77285154 (diff)
downloadredmine-a4a3d292bc11372ff5d0a48c7bf5327d958e063f.tar.gz
redmine-a4a3d292bc11372ff5d0a48c7bf5327d958e063f.zip
add issue due date calendar functional test
git-svn-id: http://svn.redmine.org/redmine/trunk@20306 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r--test/functional/calendars_controller_test.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index 13eda6742..95a214a7f 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -82,6 +82,27 @@ class CalendarsControllerTest < Redmine::ControllerTest
end
end
+ def test_show_issue_due_date
+ travel_to issues(:issues_001).due_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(
+ 'div.issue.hascontextmenu.tooltip.ending',
+ :text => /Cannot print recipes/
+ ) do
+ assert_select 'a.issue[href=?]', '/issues/1', :text => 'Bug #1'
+ assert_select 'input[name=?][type=?][value=?]', 'ids[]', 'checkbox', '1'
+ end
+ end
+ end
+ end
+ end
+
def test_show_should_run_custom_queries
@query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC)
get(