summaryrefslogtreecommitdiffstats
path: root/test/functional/calendars_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-13 12:41:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-13 12:41:05 +0000
commit19b5dc0ea983ec0fe12b6c063048f23f6ec7b458 (patch)
treea7d4bfbd185f33fa5f73a75bf331ed0ade87e717 /test/functional/calendars_controller_test.rb
parent63e7b990fe00de1f641f27f81c04b68fff0b62b2 (diff)
downloadredmine-19b5dc0ea983ec0fe12b6c063048f23f6ec7b458.tar.gz
redmine-19b5dc0ea983ec0fe12b6c063048f23f6ec7b458.zip
add functional calendar test of same start and due dates issue
git-svn-id: http://svn.redmine.org/redmine/trunk@20363 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r--test/functional/calendars_controller_test.rb39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index 6e82019ec..e3b6caad5 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -104,6 +104,45 @@ class CalendarsControllerTest < Redmine::ControllerTest
end
end
+ test "show issue of start and due dates are same" do
+ subject = 'start and due dates are same'
+ issue = Issue.generate!(:start_date => '2012-10-06',
+ :due_date => '2012-10-06',
+ :project_id => 1, :tracker_id => 1,
+ :subject => subject)
+ get(
+ :show,
+ :params => {
+ :project_id => 1,
+ :month => '10',
+ :year => '2012'
+ }
+ )
+ assert_response :success
+
+ assert_select 'table.cal' do
+ assert_select 'tr' do
+ assert_select 'td' do
+ assert_select(
+ 'div.issue.hascontextmenu.tooltip.starting.ending',
+ :text => /#{subject}/
+ ) do
+ assert_select(
+ 'a.issue[href=?]', "/issues/#{issue.id}",
+ :text => "Bug ##{issue.id}"
+ )
+ assert_select(
+ 'input[name=?][type=?][value=?]',
+ 'ids[]',
+ 'checkbox',
+ issue.id.to_s
+ )
+ end
+ end
+ end
+ end
+ end
+
def test_show_version
travel_to versions(:versions_002).effective_date