mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 23:58:26 +08:00
DEV: Avoid repeating draft key logic in multiple places.
This commit is contained in:
@ -301,9 +301,8 @@ describe PostCreator do
|
||||
end
|
||||
|
||||
it 'creates post stats' do
|
||||
|
||||
Draft.set(user, 'new_topic', 0, "test")
|
||||
Draft.set(user, 'new_topic', 0, "test1")
|
||||
Draft.set(user, Draft::NEW_TOPIC, 0, "test")
|
||||
Draft.set(user, Draft::NEW_TOPIC, 0, "test1")
|
||||
|
||||
begin
|
||||
PostCreator.track_post_stats = true
|
||||
|
Reference in New Issue
Block a user