Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Forked from jashkenas/ochre.coffee
Created July 1, 2010 02:21
Show Gist options
  • Save tswicegood/459473 to your computer and use it in GitHub Desktop.
Save tswicegood/459473 to your computer and use it in GitHub Desktop.
# Current API.
exports.name: "Unit tests for ochre.Case"
exports.tests: {
"case has name property equal to what it is instantiated with": ->
testCase: ochre.Case "Some test", ->
assert.equal "Some test", testCase.name
# Hypothetical API.
suite "Unit tests for ochre.Case", {
"case has name property equal to what it is instantiated with", ->
testCase: ochre.Case "Some test", ->
assert.equal "Some test", testCase.name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment