UNPKG

610 Btext/coffeescriptView Raw
1{ipso, tag, define, Mock} = require '../lib/ipso'
2
3before ipso (should) ->
4
5 tag
6
7 Got: should.exist
8 Not: should.not.exist
9
10 define
11
12 martini: -> Mock 'VodkaMartini'
13
14
15it 'has the vodka and the olive', ipso (VodkaMartini, Got, Not) ->
16
17 VodkaMartini.with
18
19 olive: true
20
21 .does
22
23 constructor: -> @vodka = true
24 shake: ->
25
26 Got @vodka
27 Got @olive
28
29 Not @gin
30 Got @gin # BUG, this should cause fail
31
32
33 Martini = require 'martini'
34 instance = new Martini
35
36
37 instance.shake()
38 try instance.stir()
39