PERF: Skip post validation by default when fabricating posts (#7508)

This speeds up tests by 10%
This commit is contained in:
Daniel Waterworth
2019-05-09 00:15:38 +00:00
committed by Sam
parent 8c07c272f2
commit 4da6ca4d9f
4 changed files with 71 additions and 66 deletions

View File

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