From 89f0e7ca8e4612904de5ff9b98a5de991a01b632 Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Sun, 25 Jan 2015 17:29:34 +0100 Subject: Fix calendar blank spaces --- spec/calendar_spec.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec') 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 -- cgit v1.2.3