--- http_interactions: - request: method: get uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json body: encoding: US-ASCII string: '' headers: authorization: - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6 response: status: code: 200 message: ! 'OK ' headers: x-ratelimit-limit: - '2000' x-ratelimit-remaining: - '1881' x-pages-currentpage: - '1' x-pages-totalpages: - '1' content-type: - application/json; charset=utf-8 x-ua-compatible: - IE=Edge etag: - ! '"71b79c1b45cfb58a71172c277dd004b5"' cache-control: - max-age=0, private, must-revalidate x-request-id: - dc526359d31c82f535630c7e90692fce x-runtime: - '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 body: encoding: US-ASCII 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, 04 Feb 2014 14:52:01 GMT - request: method: post uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json body: encoding: US-ASCII 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 MXNweW5vMW1icWJwM1NGcGc5dVQ6 response: status: code: 201 message: ! 'Created ' headers: x-ratelimit-limit: - '2000' x-ratelimit-remaining: - '1880' content-type: - application/json; charset=utf-8 x-ua-compatible: - IE=Edge etag: - ! '"82034b725bcb1665de21a5595d0acf35"' cache-control: - max-age=0, private, must-revalidate x-request-id: - ba359c93f2dba8b8439eb30c1cdfc84a x-runtime: - '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 set-cookie: - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU0OTE1MmEyYTI5ZDA3NTc0ZmRkMGYwNWY5ZTdiMzQ0BjsAVA%3D%3D--a30af728f33a39a4c31d6d95957ec77f494dc7b7; path=/; HttpOnly body: encoding: US-ASCII 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, 04 Feb 2014 14:52:02 GMT - request: method: delete uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/25.json body: encoding: US-ASCII string: '' headers: authorization: - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6 response: status: code: 204 message: ! 'No Content ' headers: x-ratelimit-limit: - '2000' x-ratelimit-remaining: - '1879' x-ua-compatible: - IE=Edge cache-control: - no-cache x-request-id: - ce3e2d7cfbc5162cd6d5f1e48bf4b4f3 x-runtime: - '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 set-cookie: - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgwNTZmOWQzYTE3NDMzZjQ4NmIzYWVjZmJhN2Q3MWZiBjsAVA%3D%3D--d25166caa1dd70547eafa06e8aaa561c4792c645; path=/; HttpOnly body: encoding: US-ASCII string: '' http_version: '1.1' recorded_at: Tue, 04 Feb 2014 14:52:02 GMT recorded_with: VCR 2.3.0