FIX: Group mentions missing after post processing.

This commit is contained in:
Guo Xiang Tan
2018-11-26 12:57:07 +08:00
parent 0972516abe
commit 482013a1d4
3 changed files with 9 additions and 25 deletions

View File

@ -2,7 +2,6 @@ require "rails_helper"
require "cooked_post_processor"
describe CookedPostProcessor do
context "#post_process" do
let(:upload) do
Fabricate(:upload,
@ -163,26 +162,6 @@ describe CookedPostProcessor do
end
end
context "cooking options" do
context "regular user" do
let(:post) { Fabricate(:post) }
it "doesn't omit nofollow" do
cpp = CookedPostProcessor.new(post)
expect(cpp.cooking_options[:omit_nofollow]).to eq(nil)
end
end
context "admin user" do
let(:post) { Fabricate(:post, user: Fabricate(:admin)) }
it "omits nofollow" do
cpp = CookedPostProcessor.new(post)
expect(cpp.cooking_options[:omit_nofollow]).to eq(true)
end
end
end
context "#post_process_images" do
before do