secure default for the 'find_related_post_with_key' site setting

This commit is contained in:
Régis Hanol
2017-08-01 00:03:04 +02:00
parent ec85b41078
commit 88ba052446
3 changed files with 5 additions and 3 deletions

View File

@ -400,7 +400,9 @@ describe Email::Receiver do
expect(Topic.last.ordered_posts[-1].post_type).to eq(Post.types[:moderator_action])
end
it "associates email replies using both 'In-Reply-To' and 'References' headers" do
it "associates email replies using both 'In-Reply-To' and 'References' headers when 'find_related_post_with_key' is disabled" do
SiteSetting.find_related_post_with_key = false
expect { process(:email_reply_1) }.to change(Topic, :count)
topic = Topic.last