2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: couldn't start a 4-spaces block on the first line of a post

This commit is contained in:
Régis Hanol 2014-09-02 01:18:06 +02:00
parent 22fbae8556
commit 61db6c95d2
4 changed files with 14 additions and 3 deletions

View file

@ -272,5 +272,12 @@ describe PostRevisor do
}.to_not change { topic.excerpt }
end
end
it "doesn't strip starting whitespaces" do
subject.revise!(post.user, " <-- whitespaces --> ")
post.reload
post.raw.should == " <-- whitespaces -->"
end
end
end