mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user