mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
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:

committed by
GitHub

parent
045be237a0
commit
8e5614b1bf
@ -231,7 +231,7 @@ describe PostValidator do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe "unique_post_validator" do
|
describe "unique_post_validator" do
|
||||||
fab!(:user) { Fabricate(:user, id: 999) }
|
fab!(:user) { Fabricate(:user) }
|
||||||
fab!(:post) { Fabricate(:post, user: user, topic: topic) }
|
fab!(:post) { Fabricate(:post, user: user, topic: topic) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
Reference in New Issue
Block a user