Skip to content

Instantly share code, notes, and snippets.

@elight
Created October 9, 2010 00:34
Show Gist options
  • Save elight/617754 to your computer and use it in GitHub Desktop.
Save elight/617754 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine.css">
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript" src="coffee-script.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine-html.js"></script>
</head>
<body>
<script type="text/coffeescript">
console.debug "ohai"
ecology = null
describe "A cell ecology", ->
console.debug "I'm in ur describe trying to run ur test"
beforeEach ->
console.debug "please work"
ecology = CellEcology {cell_alive: true}
console.debug "I'm still readin' ur describe"
it "should know whether the contained cell is alive or dead", ->
console.debug "again"
expect(ecology.has_living_cell).toBeTruthy()
console.debug "k ur dun describin' now"
</script>
<script type="text/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment