Created
May 11, 2012 12:31
-
-
Save pyykkis/2659346 to your computer and use it in GitHub Desktop.
Transparency tests refactored
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
it "should ignore null values", -> | |
doc = $ """ | |
<div class="container"> | |
<div class="hello"></div> | |
<div class="goodbye"></div> | |
</div> | |
""" | |
data = | |
hello: 'Hello' | |
goodbye: null | |
expected = $ """ | |
<div class="container"> | |
<div class="hello">Hello</div> | |
<div class="goodbye"></div> | |
</div> | |
""" | |
doc.render data | |
expect(doc.html()).htmlToBeEqual expected.html() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment