Skip to content

Instantly share code, notes, and snippets.

@pyykkis
Created May 11, 2012 12:31
Show Gist options
  • Save pyykkis/2659346 to your computer and use it in GitHub Desktop.
Save pyykkis/2659346 to your computer and use it in GitHub Desktop.
Transparency tests refactored
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