Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created July 1, 2010 01:06
Show Gist options
  • Save jashkenas/459416 to your computer and use it in GitHub Desktop.
Save jashkenas/459416 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.
describe "Unit tests for ochre.Case", ->
test "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