test/fixtures/quaderno_cassettes/new_invoice.yml in quaderno-1.2.1 vs test/fixtures/quaderno_cassettes/new_invoice.yml in quaderno-1.2.2
- old
+ new
@@ -1,125 +1,142 @@
---
http_interactions:
- request:
method: get
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
body:
encoding: US-ASCII
string: ''
headers:
authorization:
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
response:
status:
code: 200
- message: OK
+ message: ! 'OK '
headers:
x-ratelimit-limit:
- - '1000'
+ - '2000'
x-ratelimit-remaining:
- - '853'
+ - '1881'
+ x-pages-currentpage:
+ - '1'
+ x-pages-totalpages:
+ - '1'
content-type:
- application/json; charset=utf-8
x-ua-compatible:
- IE=Edge
etag:
- - ! '"d251a198e8a45af2dac75b448e48bbce"'
+ - ! '"71b79c1b45cfb58a71172c277dd004b5"'
cache-control:
- max-age=0, private, must-revalidate
x-request-id:
- - 91db6322200bd2ebeb300076e56c5c94
+ - dc526359d31c82f535630c7e90692fce
x-runtime:
- - '0.141534'
+ - '0.166930'
+ server:
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
+ date:
+ - Tue, 04 Feb 2014 14:52:01 GMT
+ content-length:
+ - '1879'
connection:
- close
- server:
- - thin 1.5.0 codename Knife
body:
encoding: US-ASCII
- string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":1,"kind":"company","full_name":"Recrea
- Systems, SLU","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
- Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
- de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":7,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"},{"id":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
- Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/12"},{"id":15,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/15"},{"id":8,"kind":"company","full_name":"Toby","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"}]'
+ string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
+ Kashin Ryu no Dojo","street_line_2":"","postal_code":"876-0854","city":"Tokyo","region":"Tokyo","country":"JP","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":1,"kind":"company","full_name":"API
+ Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
+ 1B0","city":"Springfield","region":"Canada","country":"ES","phone_1":"","phone_2":"","fax":"","email":"dummy@email.test","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":4,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":6,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":3,"kind":"company","full_name":"TSM","contact_name":"Reginald","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"reggie@tsm.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"}]'
http_version: '1.1'
- recorded_at: Tue, 14 May 2013 10:48:51 GMT
+ recorded_at: Tue, 04 Feb 2014 14:52:01 GMT
- request:
method: post
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices.json
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json
body:
encoding: US-ASCII
- string: contact_id=3&contact_name=100-499¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
+ string: contact_id=2&contact_name=Another%20Test%20Contact¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
headers:
authorization:
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
response:
status:
code: 201
- message: Created
+ message: ! 'Created '
headers:
x-ratelimit-limit:
- - '1000'
+ - '2000'
x-ratelimit-remaining:
- - '852'
+ - '1880'
content-type:
- application/json; charset=utf-8
x-ua-compatible:
- IE=Edge
etag:
- - ! '"647ab2d1790b97870cf47cd1acc763da"'
+ - ! '"82034b725bcb1665de21a5595d0acf35"'
cache-control:
- max-age=0, private, must-revalidate
x-request-id:
- - 80eaa51c785bed6afe6a33979d64e1c3
+ - ba359c93f2dba8b8439eb30c1cdfc84a
x-runtime:
- - '0.515162'
+ - '0.560384'
+ server:
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
+ date:
+ - Tue, 04 Feb 2014 14:52:02 GMT
+ content-length:
+ - '726'
connection:
- close
- server:
- - thin 1.5.0 codename Knife
+ set-cookie:
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU0OTE1MmEyYTI5ZDA3NTc0ZmRkMGYwNWY5ZTdiMzQ0BjsAVA%3D%3D--a30af728f33a39a4c31d6d95957ec77f494dc7b7;
+ path=/; HttpOnly
body:
encoding: US-ASCII
- string: ! '{"id":175,"number":"Especial 2o","issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"po_number":null,"due_date":null,"currency":"EUR","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/invoice/88a5685c1becceef3d60dba1d04cffe270c8501a","url":"http://localhost:3000/recrea/api/v1/invoices/175.json"}'
+ string: ! '{"id":25,"number":"0000004","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
+ Test Contact"},"po_number":null,"due_date":null,"currency":"EUR","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"reference":null,"subtotal":"0.00
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/6be08bee13894a94e9161d996c633b3841ff4624","url":"http://localhost:3000/recrea/api/v1/invoices/25.json"}'
http_version: '1.1'
- recorded_at: Tue, 14 May 2013 10:48:52 GMT
+ recorded_at: Tue, 04 Feb 2014 14:52:02 GMT
- request:
method: delete
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/invoices/175.json
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/25.json
body:
encoding: US-ASCII
string: ''
headers:
authorization:
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
response:
status:
code: 204
- message: No Content
+ message: ! 'No Content '
headers:
x-ratelimit-limit:
- - '1000'
+ - '2000'
x-ratelimit-remaining:
- - '851'
+ - '1879'
x-ua-compatible:
- IE=Edge
cache-control:
- no-cache
- set-cookie:
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgxYzhmOGFjN2UzNTMyZGU3YmZiYzA5NDBkMjBlNTAwBjsAVA%3D%3D--e2550a25f54092eabdd012011bdf91e0ac2837f6;
- path=/; HttpOnly
x-request-id:
- - 530553c06fa88d8b4dacb17cbc53b427
+ - ce3e2d7cfbc5162cd6d5f1e48bf4b4f3
x-runtime:
- - '0.393908'
+ - '0.480237'
+ server:
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
+ date:
+ - Tue, 04 Feb 2014 14:52:02 GMT
connection:
- close
- server:
- - thin 1.5.0 codename Knife
+ set-cookie:
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgwNTZmOWQzYTE3NDMzZjQ4NmIzYWVjZmJhN2Q3MWZiBjsAVA%3D%3D--d25166caa1dd70547eafa06e8aaa561c4792c645;
+ path=/; HttpOnly
body:
encoding: US-ASCII
string: ''
http_version: '1.1'
- recorded_at: Tue, 14 May 2013 10:48:52 GMT
+ recorded_at: Tue, 04 Feb 2014 14:52:02 GMT
recorded_with: VCR 2.3.0