test/integration/posts_index_aka_topic_show_test.rb
# Assert if there is post content.
Assert if there is post content.
Assert if there is post content .
def assert_post_body_for(post, present: true)
    if present
      assert_match    markdown(post.content), response.body
    else
      assert_no_match markdown(post.content), response.body
    end
  end
def assert_post_body_for ( post , present : true ) if present assert_match markdown ( post . content ) , response . body else assert_no_match markdown ( post . content ) , response . body end end
Assert if there is post content.
Assert if there is post content .
post
<not_specific>
present
<not_specific>