mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 06:32:45 +08:00
Fix the build.
This commit is contained in:
parent
2ae87a27fa
commit
fd6b594625
|
@ -1288,7 +1288,9 @@ describe CookedPostProcessor do
|
||||||
topic.bumped_at = 1.day.ago
|
topic.bumped_at = 1.day.ago
|
||||||
CookedPostProcessor.new(reply).removed_direct_reply_full_quotes
|
CookedPostProcessor.new(reply).removed_direct_reply_full_quotes
|
||||||
|
|
||||||
expect(topic.posts).to eq([post, hidden, small_action, reply])
|
expect(topic.ordered_posts.pluck(:id))
|
||||||
|
.to eq([post.id, hidden.id, small_action.id, reply.id])
|
||||||
|
|
||||||
expect(topic.bumped_at).to eq(1.day.ago)
|
expect(topic.bumped_at).to eq(1.day.ago)
|
||||||
expect(reply.raw).to eq("and this is the third reply")
|
expect(reply.raw).to eq("and this is the third reply")
|
||||||
expect(reply.revisions.count).to eq(1)
|
expect(reply.revisions.count).to eq(1)
|
||||||
|
@ -1300,7 +1302,7 @@ describe CookedPostProcessor do
|
||||||
it 'does not delete quote if not first paragraph' do
|
it 'does not delete quote if not first paragraph' do
|
||||||
reply = Fabricate(:post, topic: topic, raw: raw2)
|
reply = Fabricate(:post, topic: topic, raw: raw2)
|
||||||
CookedPostProcessor.new(reply).removed_direct_reply_full_quotes
|
CookedPostProcessor.new(reply).removed_direct_reply_full_quotes
|
||||||
expect(topic.posts).to eq([post, reply])
|
expect(topic.ordered_posts.pluck(:id)).to eq([post.id, reply.id])
|
||||||
expect(reply.raw).to eq(raw2)
|
expect(reply.raw).to eq(raw2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user