mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Group mentions missing after post processing.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user