Commit c8f04c6b1746eae6562ba2e786763802165bae25

Authored by Antonio Terceiro
1 parent cc0bc872

Fix non-deterministic test failure

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/unit/forum_test.rb
... ... @@ -80,7 +80,8 @@ class ForumTest < ActiveSupport::TestCase
80 80 newer = create(TextileArticle, :name => 'Post 2', :parent => forum, :profile => p)
81 81 older = create(TextileArticle, :name => 'Post 1', :parent => forum, :profile => p)
82 82 older.updated_at = Time.now - 1.month
83   - older.send :update_without_callbacks
  83 + older.stubs(:record_timestamps).returns(false)
  84 + older.save!
84 85 assert_equal [newer, older], forum.posts
85 86 end
86 87  
... ...