require "test_helper"
class MarkdownHelperTest < ActionView::TestCase
test "renders GitHub-flavored Markdown and keeps single line breaks" do
html = markdown("**Hangar** code 1234\nGate on the left\n\n- [x] Oil\n- [ ] Tires\n\n| A | B |\n|---|---|\n| 1 | 2 |")
assert_includes html, "Hangar code 1234
"
assert_includes html, ''
assert_includes html, "