Skip to content

Commit

Permalink
Test for rendered body
Browse files Browse the repository at this point in the history
  • Loading branch information
jm committed Feb 5, 2010
1 parent 2cbb0b0 commit af83a5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 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.