chai = require 'chai' assert = chai.assert expect = chai.expect should = chai.should() tumbl = require 'lib/tumble' test_data = [ { 'input': '', 'output': '' } { 'input': '', 'output': '', } { 'input': '

{name}

' 'output': '

Elf Sternberg

' 'data': {'name': 'Elf Sternberg'} } { 'input': '

{title} {name}

' 'output': '

Mr. Elf Sternberg

' 'data': {'name': 'Elf Sternberg', 'title': 'Mr.'} } describe "Foobar", -> describe "#sayHello()", -> it "should work with assert", -> assert.equal foobar.sayHello(), "funky chicken!" it "should work with expect", -> expect(foobar.sayHello()).to.equal "funky chicken!" it "should work with should", -> foobar.sayHello().should.equal "funky chicken!"