Skip to content

Instantly share code, notes, and snippets.

@jdudek jdudek/gist:2136360
Created Mar 20, 2012

Embed
What would you like to do?
Jasmine: suite [] instead of nested describe
# suite ["shooter", "acceptance"], -> ...
# is equivalent to:
# describe "shooter", ->
# describe "acceptance", -> ...
window.suite = (names, block) ->
name = names.shift()
if names.length > 0
describe(name, -> suite(names, block))
else
describe(name, block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.