Last active
August 29, 2015 14:05
-
-
Save Gazler/d7221ad76b20b4f72154 to your computer and use it in GitHub Desktop.
earmark test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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