FIX: Publishing should update the public_version too

This commit is contained in:
Robin Ward 2018-03-26 15:46:04 -04:00
parent 09b9b56091
commit d4296f33ff
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class TopicPublisher
if op.present?
op.revisions.delete_all
op.update_column(:version, 1)
op.update_column(:public_version, 1)
end
end

View File

@ -39,6 +39,7 @@ describe TopicPublisher do
# Should delete any edits on the OP
expect(op.revisions.size).to eq(0)
expect(op.version).to eq(1)
expect(op.public_version).to eq(1)
end
end