Skip to content

Instantly share code, notes, and snippets.

@Gazler
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gazler/d7221ad76b20b4f72154 to your computer and use it in GitHub Desktop.
Save Gazler/d7221ad76b20b4f72154 to your computer and use it in GitHub Desktop.
earmark test
test "Columns with pipes" do
result = Earmark.to_html(["a | b | c", "d | e \| f | g"])
expected = """
<table>
<colgroup>
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<tr>
<td>a</td><td>b</td><td>c</td>
</tr>
<tr>
<td>d</td><td>e | f</td><td>g</td>
</tr>
</table>
"""
assert result == expected
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment