fix tests

This commit is contained in:
r888888888
2017-04-04 12:25:03 -07:00
parent 347ffb5989
commit 0b8d4105aa
19 changed files with 111 additions and 162 deletions

View File

@@ -91,7 +91,7 @@ class CommentTest < ActiveSupport::TestCase
setup do
@post = FactoryGirl.create(:post)
@comment = FactoryGirl.create(:comment, :post_id => @post.id)
@comment.destroy
@comment.update({is_deleted: true}, as: :member)
@post.reload
end