From ba1449a6632263a0fc8802ae870b31618bf5b03c Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 29 Oct 2014 15:47:07 -0200 Subject: [PATCH] fix BlogArchiveBlock tests wrt timezone --- test/unit/blog_archives_block_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/blog_archives_block_test.rb b/test/unit/blog_archives_block_test.rb index 61817a7..c927323 100644 --- a/test/unit/blog_archives_block_test.rb +++ b/test/unit/blog_archives_block_test.rb @@ -18,7 +18,7 @@ class BlogArchivesBlockTest < ActiveSupport::TestCase end should 'list amount posts by year' do - date = DateTime.parse('2008-01-01') + date = DateTime.parse('2008-01-10') blog = profile.blog for i in 1..10 do post = fast_create(TextileArticle, :name => "post #{i} test", :profile_id => profile.id, :parent_id => blog.id) @@ -30,7 +30,7 @@ class BlogArchivesBlockTest < ActiveSupport::TestCase end should 'list amount posts by month' do - date = DateTime.parse('2008-01-01') + date = DateTime.parse('2008-01-10') blog = profile.blog for i in 1..10 do post = fast_create(TextileArticle, :name => "post #{i} test", :profile_id => profile.id, :parent_id => blog.id) @@ -103,7 +103,7 @@ class BlogArchivesBlockTest < ActiveSupport::TestCase end should 'list amount native posts by year' do - date = DateTime.parse('2008-01-01') + date = DateTime.parse('2008-01-10') blog = profile.blog 2.times do |i| post = fast_create(TextileArticle, :name => "post #{i} test", :profile_id => profile.id, @@ -119,7 +119,7 @@ class BlogArchivesBlockTest < ActiveSupport::TestCase end should 'list amount native posts by month' do - date = DateTime.parse('2008-01-01') + date = DateTime.parse('2008-01-10') blog = profile.blog 2.times do |i| post = fast_create(TextileArticle, :name => "post #{i} test", :profile_id => profile.id, -- libgit2 0.21.2