From 80c2ac5c8f67474f8bb836745b5ec5bf566760f4 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Sat, 20 May 2017 15:28:35 +0200 Subject: [PATCH] Bring back the test --- spec/models/markdowner_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/models/markdowner_spec.rb b/spec/models/markdowner_spec.rb index 63c3eee..96d66b8 100644 --- a/spec/models/markdowner_spec.rb +++ b/spec/models/markdowner_spec.rb @@ -6,6 +6,16 @@ describe Markdowner do "

hello there italics and bold!

" end + it "turns @username into a link if @username exists" do + User.make!(:username => "blahblah") + + Markdowner.to_html("hi @blahblah test").should == + "

hi @blahblah test

" + + Markdowner.to_html("hi @flimflam test").should == + "

hi @flimflam test

" + end + # bug#209 it "keeps punctuation inside of auto-generated links when using brackets" do Markdowner.to_html("hi test").should ==