DEV: Remove hardcoded ID in test fabrication. (#16313)

This hardcoded ID can cause fabrication to fail once we create 999
users across the entire test suite.
This commit is contained in:
Alan Guo Xiang Tan 2022-03-29 15:23:55 +08:00 committed by GitHub
parent 045be237a0
commit 8e5614b1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ describe PostValidator do
end
describe "unique_post_validator" do
fab!(:user) { Fabricate(:user, id: 999) }
fab!(:user) { Fabricate(:user) }
fab!(:post) { Fabricate(:post, user: user, topic: topic) }
before do