aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorCarlos Goce <carlosgoce@gmail.com>2015-01-25 17:29:34 +0100
committerCarlos Goce <carlosgoce@gmail.com>2015-01-25 17:29:34 +0100
commit89f0e7ca8e4612904de5ff9b98a5de991a01b632 (patch)
treefff0e447fd548ecc3da7da1b3a010dd3ca7811b6 /spec
parent36d4411136969d56312533f95e7bedd53415138e (diff)
downloadpdf-calendars-89f0e7ca8e4612904de5ff9b98a5de991a01b632.tar.gz
pdf-calendars-89f0e7ca8e4612904de5ff9b98a5de991a01b632.tar.bz2
pdf-calendars-89f0e7ca8e4612904de5ff9b98a5de991a01b632.zip
Fix calendar blank spaces
Diffstat (limited to 'spec')
-rw-r--r--spec/calendar_spec.rb3
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