mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Skip post validation by default when fabricating posts (#7508)
This speeds up tests by 10%
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user