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