From 3613ebee5bcae4b6edccd4de5196fd058c637b2e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 12 Jul 2017 18:09:57 -0400 Subject: [PATCH] Revert "correct specs" This reverts commit 2c6284ece3bb3bfd457093049c31a4146c80e15e. --- spec/models/post_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb index 0aeeaaa8e14..32d1566cefe 100644 --- a/spec/models/post_spec.rb +++ b/spec/models/post_spec.rb @@ -414,14 +414,12 @@ describe Post do end it "ignores pre" do - # we need to force an inline - post = Fabricate.build(:post, post_args.merge(raw: "p
@Jake
@Finn")) + post = Fabricate.build(:post, post_args.merge(raw: "
@Jake
@Finn")) expect(post.raw_mentions).to eq(['finn']) end it "catches content between pre tags" do - # per common mark we need to force an inline - post = Fabricate.build(:post, post_args.merge(raw: "a
hello
@Finn
"))
+        post = Fabricate.build(:post, post_args.merge(raw: "
hello
@Finn
"))
         expect(post.raw_mentions).to eq(['finn'])
       end
 
@@ -431,7 +429,7 @@ describe Post do
       end
 
       it "ignores quotes" do
-        post = Fabricate.build(:post, post_args.merge(raw: "[quote=\"Evil Trout\"]\n@Jake\n[/quote]\n@Finn"))
+        post = Fabricate.build(:post, post_args.merge(raw: "[quote=\"Evil Trout\"]@Jake[/quote] @Finn"))
         expect(post.raw_mentions).to eq(['finn'])
       end