mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:53:42 +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:
parent
045be237a0
commit
8e5614b1bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user