1 |
|
2 |
|
3 | headers: 'User-Agent': 'Ciao/Client 1.0'
|
4 |
|
5 |
|
6 | headers: 'Cookie': config['tester@test.com']
|
7 |
|
8 |
|
9 | path: '/'
|
10 | method: 'GET'
|
11 | headers:
|
12 | 'Accept': 'application/json'
|
13 | 'Content-Type': 'application/json'
|
14 | body:
|
15 | first_name: 'Fabrizio'
|
16 | last_name: 'Moscon'
|
17 | email: "fabrizio#{Date.now()}@gmail.com"
|
18 | password: 'mySecretPass'
|
19 |
|
20 |
|
21 | path: '/foo'
|
22 | method: 'POST'
|
23 |
|
24 |
|
25 | Please ignore this Junk Section
|
26 |
|
27 |
|
28 | response.statusCode.should.equal 302
|
29 |
|
30 |
|
31 | response.headers.should.have.property 'content-type', 'text/html; charset=ISO-8859-1'
|
32 |
|
33 |
|
34 | response.body.should.include 'window.attachEvent'
|
35 |
|
36 |
|
37 | response.headers.should.have.property 'set-cookie' |
\ | No newline at end of file |