FIX: Not logging old post contents properly

This commit is contained in:
Robin Ward
2018-03-14 15:01:36 -04:00
parent d31dfe0e84
commit 135195363b
3 changed files with 6 additions and 3 deletions

View File

@ -460,8 +460,9 @@ describe PostRevisor do
log = UserHistory.where(
acting_user_id: moderator.id,
action: UserHistory.actions[:post_edit]
)
).first
expect(log).to be_present
expect(log.details).to eq("Hello world\n\n---\n\nlets totally update the body")
end
it "doesn't log an edit when a staff member edits their own post" do