fixed unit tests

This commit is contained in:
albert
2011-01-22 03:01:15 -05:00
parent 6824e98af3
commit c5a9067e72
6 changed files with 157 additions and 100 deletions

View File

@@ -16,9 +16,10 @@ class ForumPostTest < ActiveSupport::TestCase
should "update its parent when saved" do
sleep 1
original_topic_updated_at = @topic.updated_at
post = Factory.create(:forum_post, :topic_id => @topic.id)
@topic.reload
assert(@topic.updated_at > 1.second.ago)
assert_not_equal(original_topic_updated_at, @topic.updated_at)
end
should "be searchable by body content" do