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:
parent
f9110ad4cb
commit
c6577fb98e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue