test/lib/calendrier/calendrier_builder_test.rb in calendrier-0.9.0 vs test/lib/calendrier/calendrier_builder_test.rb in calendrier-0.9.1

- old
+ new

@@ -17,11 +17,11 @@ 3.times { @days_of_may << '' } # preparing array for the week of the 25th of may 2012 @days_of_may_weekly = [] 24.times do |hour_idx| - @days_of_may_weekly << (hour_idx).to_s + @days_of_may_weekly << "#{(hour_idx).to_s}h" 7.times do |day_idx| @days_of_may_weekly << '' end end @@ -79,11 +79,11 @@ it "should have the right amount of lines for monthly calendar" do cal = generate_calendar(:month) html_doc = Nokogiri::HTML(cal.html_safe) calendar_lines = html_doc.css('div.calendar tr') calendar_lines_count = html_doc.css('div.calendar tr').count - calendar_lines_count.must_equal 5 + calendar_lines_count.must_equal 6 end it "should have the right amount of columns for monthly calendar" do cal = generate_calendar(:month) html_doc = Nokogiri::HTML(cal.html_safe) @@ -107,10 +107,10 @@ it "should have the right amount of lines for weekly calendar" do cal = generate_calendar(:week) html_doc = Nokogiri::HTML(cal.html_safe) calendar_lines_count = html_doc.css('div.calendar tr').count - calendar_lines_count.must_equal 24 + calendar_lines_count.must_equal 25 end it "should have the right amount of columns for monthly calendar" do cal = generate_calendar(:week) html_doc = Nokogiri::HTML(cal.html_safe)