From 8e5614b1bfaaa9da87a8d5bbe6bc208498b51d94 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 29 Mar 2022 15:23:55 +0800 Subject: [PATCH] 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. --- spec/lib/validators/post_validator_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/validators/post_validator_spec.rb b/spec/lib/validators/post_validator_spec.rb index 8214619c0ce..22bed6b1123 100644 --- a/spec/lib/validators/post_validator_spec.rb +++ b/spec/lib/validators/post_validator_spec.rb @@ -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