1 | {ipso, tag, define, Mock} = require '../lib/ipso'
|
2 |
|
3 | before 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 |
|
15 | it '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
|
31 |
|
32 |
|
33 | Martini = require 'martini'
|
34 | instance = new Martini
|
35 |
|
36 |
|
37 | instance.shake()
|
38 | try instance.stir()
|
39 |
|