PERF: avoid checking for consecutive replies in test

This check can issue up to 2 queries per post created, we have specific
tests for it so we can avoid.

This also rolls back #4da6ca4d
This commit is contained in:
Sam Saffron
2019-05-09 13:28:28 +10:00
parent 8ec1f8cf07
commit 88650a1259
5 changed files with 67 additions and 71 deletions

View File

@ -102,7 +102,7 @@ describe PostRevisor do
end
context 'revise' do
let(:post) { Fabricate(:post_with_validation, post_args) }
let(:post) { Fabricate(:post, post_args) }
let(:first_version_at) { post.last_version_at }
subject { PostRevisor.new(post) }