summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-01-14 05:19:31 +0000
committerGo MAEDA <maeda@farend.jp>2019-01-14 05:19:31 +0000
commitc9f460bb7dee4afd7d71f0c4535bb5dec650c9e6 (patch)
treeacb0c580d58adc1b6f856bdb8df50713c6a49285 /test/functional
parentfdf468cdf7f36efd99af8930d4266a420fbe352b (diff)
downloadredmine-c9f460bb7dee4afd7d71f0c4535bb5dec650c9e6.tar.gz
redmine-c9f460bb7dee4afd7d71f0c4535bb5dec650c9e6.zip
Add "nwday" class to non-working days in calendar (#27096).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17798 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/calendars_controller_test.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index 7e1cd4413..da9db3d64 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -130,8 +130,24 @@ class CalendarsControllerTest < Redmine::ControllerTest
get :show, :params => {
:query_id => 6
}
-
+
assert_response :success
assert_select 'h2', :text => 'Open issues grouped by tracker'
end
+
+ def test_show_calendar_day_css_classes
+ get :show, :params => {
+ :month => '12',
+ :year => '2016'
+ }
+ assert_response :success
+
+ assert_select 'tr:nth-child(2)' do
+ assert_select 'td.week-number', :text => '49'
+ # non working days should have "nwday" CSS class
+ assert_select 'td.nwday', 2
+ assert_select 'td.nwday', :text => '4'
+ assert_select 'td.nwday', :text => '10'
+ end
+ end
end