Added a reload to fix a test broken on master

I am not sure why this is wokring on Rails 4, but the problem is that `post3`
here is holding on to an old reference of some associations so `PostDestroyer`
is not doing the right thing.
This commit is contained in:
Godfrey Chan 2013-12-30 14:33:07 -08:00
parent f9110ad4cb
commit c6577fb98e
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ describe Category do
category.latest_post_id.should == post3.id
category.latest_topic_id.should == post2.topic_id
post3.reload
destroyer = PostDestroyer.new(Fabricate(:admin), post3)
destroyer.destroy