diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/calendar_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/calendar_spec.rb b/spec/calendar_spec.rb index 815f1b1..6a8e22a 100644 --- a/spec/calendar_spec.rb +++ b/spec/calendar_spec.rb @@ -46,6 +46,9 @@ describe 'Calendar' do it 'return the days available formated as array leaving blank days for the starting week\'s day' do days_for_january_2015 = ['', '', ''] + (1..31).to_a expect(@calendar.to_h[:months][1][:formatted_days]).to eq days_for_january_2015 + + days_for_february_2015 = ['', '', '', '', '', ''] + (1..28).to_a + expect(@calendar.to_h[:months][2][:formatted_days]).to eq days_for_february_2015 end end |