HTML-Formatting

* added simple_format for content content
* added support for SyntaxHighlighter JS
* finished rake tasks for blog
This commit is contained in:
Marc Remolt
2011-06-02 16:22:50 +02:00
parent a45f502f44
commit afb35f58ad
4 changed files with 43 additions and 42 deletions

View File

@@ -94,6 +94,9 @@ describe Refinery::WordPress::Dump, :type => :model do
it { page.should_not == dump.pages.first }
describe "#to_refinery" do
include ::ActionView::Helpers::TagHelper
include ::ActionView::Helpers::TextHelper
before do
# "About me" has a parent page with id 8 in the XML dump,
# would otherwise fails creation
@@ -111,7 +114,7 @@ describe Refinery::WordPress::Dump, :type => :model do
@page.title.should == page.title
@page.draft.should == page.draft?
@page.created_at.should == page.post_date
@page.parts.first.body.should == "<p>#{page.content}</p>"
@page.parts.first.body.should == "#{simple_format(page.content)}"
end
end
end