FIX: Queued Posts were not saving tags properly

This commit is contained in:
Robin Ward
2019-04-05 14:07:47 -04:00
parent 06e3b25d04
commit 8181ad646b
2 changed files with 4 additions and 2 deletions

View File

@ -268,7 +268,8 @@ describe NewPostManager do
manager = NewPostManager.new(
topic.user,
raw: 'to the handler I say enqueue me!',
title: 'this is the title of the queued post'
title: 'this is the title of the queued post',
tags: ['hello', 'world']
)
result = manager.perform
@ -280,6 +281,7 @@ describe NewPostManager do
expect(reviewable.reviewable_scores).to be_present
expect(reviewable.score).to eq(20.5)
expect(reviewable.reviewable_by_moderator?).to eq(true)
expect(reviewable.payload['tags']).to eq(['hello', 'world'])
expect(result.action).to eq(:enqueued)
expect(result).to be_success
expect(result.pending_count).to eq(1)