Commit 287d950458139ef1aa5907a869d20c896effc289
1 parent
48bf7610
Exists in
master
and in
29 other branches
rails3: fix time zone issue
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/approve_comment_test.rb
... | ... | @@ -77,7 +77,7 @@ class ApproveCommentTest < ActiveSupport::TestCase |
77 | 77 | end |
78 | 78 | |
79 | 79 | should 'create comment with the created_at atribute passed as parameter when finishing task' do |
80 | - now = Time.now - 10 | |
80 | + now = Time.now.in_time_zone - 10 | |
81 | 81 | @comment.created_at = now |
82 | 82 | approve_comment = ApproveComment.create!(:target => @community, :comment_attributes => @comment.attributes.to_json, :requestor => @profile) |
83 | 83 | assert_difference @article.comments, :count, 1 do | ... | ... |