oojspec example with CoffeeScript and no test runner

https://github.com/rosenfeld/oojspec

by rosenfeld

HTML

<script src="http://oojspec.herokuapp.com/assets/oojspec.js"></script>
<link rel="stylesheet" href="http://oojspec.herokuapp.com/assets/oojspec.css">

CoffeeScript

oojspec.describe 'Some description', ->
    @example 'async examples work', ->
        a = false
        setTimeout (-> a = true), 200
        @waitsFor -> a
        @runs -> @assert true

oojspec.runSpecs()