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:
Sam
2018-11-15 13:14:07 +11:00
parent ee60ecc71f
commit 6556a87629
2 changed files with 7 additions and 3 deletions

View File

@ -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
}