Skip to content
Permalink
Browse files

Test for rendered body

  • Loading branch information...
jm committed Feb 5, 2010
1 parent 2cbb0b0 commit af83a5a2e85a1679896e989f6828d1f5ee4aa7d3
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/unit/post_test.rb
@@ -1,8 +1,9 @@
require 'test_helper'

class PostTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
test "renders Markdown after save" do
post = Post.create(:title => "This post rocks.", :body => "Now *this* is an awesome post.")

assert_equal "<p>Now <em>this</em> is an awesome post.</p>", post.rendered_body.chomp
end
end

0 comments on commit af83a5a

Please sign in to comment.
You can’t perform that action at this time.