Whitespace cleanup.
This commit is contained in:
parent
a61fd16a77
commit
3567423d98
1 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ describe MarkdownifyHelper do
|
|||
describe "#markdownify" do
|
||||
describe "not doing something dumb" do
|
||||
it "strips out script tags" do
|
||||
markdownify("<script>alert('XSS is evil')</script>").should ==
|
||||
markdownify("<script>alert('XSS is evil')</script>").should ==
|
||||
"<p>alert('XSS is evil')</p>\n"
|
||||
end
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ describe MarkdownifyHelper do
|
|||
|
||||
context 'when formatting status messages' do
|
||||
it "should leave tags intact" do
|
||||
message = Factory.create(:status_message,
|
||||
message = Factory.create(:status_message,
|
||||
:author => alice.person,
|
||||
:text => "I love #markdown")
|
||||
formatted = markdownify(message)
|
||||
|
|
@ -43,7 +43,7 @@ describe MarkdownifyHelper do
|
|||
end
|
||||
|
||||
it "should leave mentions intact" do
|
||||
message = Factory.create(:status_message,
|
||||
message = Factory.create(:status_message,
|
||||
:author => alice.person,
|
||||
:text => "Hey @{Bob; #{bob.diaspora_handle}}!")
|
||||
formatted = markdownify(message)
|
||||
|
|
@ -52,7 +52,7 @@ describe MarkdownifyHelper do
|
|||
|
||||
it "should leave mentions intact for real diaspora handles" do
|
||||
new_person = Factory(:person, :diaspora_handle => 'maxwell@joindiaspora.com')
|
||||
message = Factory.create(:status_message,
|
||||
message = Factory.create(:status_message,
|
||||
:author => alice.person,
|
||||
:text => "Hey @{maxwell@joindiaspora.com; #{new_person.diaspora_handle}}!")
|
||||
formatted = markdownify(message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue