mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: only check for conflict on edit drafts
In some unknown cases non edit drafts are being checked for conflict
This commit is contained in:
@ -29,7 +29,8 @@ describe DraftController do
|
||||
sequence: 0,
|
||||
data: {
|
||||
postId: post.id,
|
||||
originalText: post.raw
|
||||
originalText: post.raw,
|
||||
action: "edit"
|
||||
}.to_json
|
||||
}
|
||||
|
||||
@ -41,7 +42,8 @@ describe DraftController do
|
||||
sequence: 0,
|
||||
data: {
|
||||
postId: post.id,
|
||||
originalText: "something else"
|
||||
originalText: "something else",
|
||||
action: "edit"
|
||||
}.to_json
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user