Commit 5944bfdee479baf3828460db76e492965fc9f7d6

Authored by Antonio Terceiro
1 parent 012f533e

Avoid transient test failures

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
test/unit/comment_test.rb
@@ -398,6 +398,9 @@ class CommentTest < ActiveSupport::TestCase @@ -398,6 +398,9 @@ class CommentTest < ActiveSupport::TestCase
398 end 398 end
399 399
400 should 'update article activity when add a comment' do 400 should 'update article activity when add a comment' do
  401 + now = Time.now
  402 + Time.stubs(:now).returns(now)
  403 +
401 profile = create_user('testuser').person 404 profile = create_user('testuser').person
402 article = create(TinyMceArticle, :profile => profile) 405 article = create(TinyMceArticle, :profile => profile)
403 406