Commit 5944bfdee479baf3828460db76e492965fc9f7d6
1 parent
012f533e
Exists in
master
and in
28 other branches
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 | 398 | end |
| 399 | 399 | |
| 400 | 400 | should 'update article activity when add a comment' do |
| 401 | + now = Time.now | |
| 402 | + Time.stubs(:now).returns(now) | |
| 403 | + | |
| 401 | 404 | profile = create_user('testuser').person |
| 402 | 405 | article = create(TinyMceArticle, :profile => profile) |
| 403 | 406 | ... | ... |