--- - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :post uri: http://user:pass@www.example.com:80/users.json?user[email]=me%40example.com&user[password]=CD2480A3413F&user[login]=user&user[first_name]=John&user[last_name]=Doe body: headers: content-type: - application/json authorization: - Basic WHAT response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 201 message: Created headers: x-ua-compatible: - IE=Edge,chrome=1 x-powered-by: - Phusion Passenger (mod_rails/mod_rack) 3.0.1 location: - http://www.example.com/users/4 content-type: - application/json; charset=utf-8 date: - Wed, 13 Apr 2011 16:21:16 GMT server: - Apache/2.2.3 (CentOS) x-runtime: - "0.037750" set-cookie: - _onapp_session=WHAT; path=/; HttpOnly cache-control: - no-cache status: - "201" transfer-encoding: - chunked body: "{\"user\":{\"activated_at\":\"2011-04-13T16:21:16Z\",\"created_at\":\"2011-04-13T16:21:16Z\",\"total_amount\":0.0,\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":null,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2011-04-13T16:21:16Z\",\"used_disk_size\":0,\"used_cpus\":0,\"used_cpu_shares\":0,\"activation_code\":null,\"billing_plan_id\":1,\"group_id\":null,\"id\":4,\"used_memory\":0,\"payment_amount\":\"0.0\",\"last_name\":\"Doe\",\"remember_token\":null,\"disk_space_available\":null,\"time_zone\":null,\"login\":\"user\",\"status\":\"active\",\"roles\":[],\"outstanding_amount\":0.0,\"email\":\"me@example.com\",\"first_name\":\"John\"}}" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :post uri: http://user:pass@www.example.com:80/users.json?user[email]=metaken%40example.com&user[first_name]=John&user[password]=CD2480A3413F&user[last_name]=Doe&user[group_id]=10&user[login]=usertaken body: headers: content-type: - application/json authorization: - Basic WHAT response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 422 message: Unprocessable Entity headers: x-ua-compatible: - IE=Edge,chrome=1 x-powered-by: - Phusion Passenger (mod_rails/mod_rack) 3.0.1 content-type: - application/json; charset=utf-8 date: - Wed, 13 Apr 2011 19:38:41 GMT server: - Apache/2.2.3 (CentOS) x-runtime: - "2.828053" set-cookie: - _onapp_session=WHAT; path=/; HttpOnly cache-control: - no-cache status: - "422" transfer-encoding: - chunked body: "{\"login\":[\"has already been taken\"],\"email\":[\"has already been taken\"]}" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :post uri: http://user:pass@www.example.com:80/users.json?user[email]=me%40example.com&user[password]=CD2480A3413F&user[login]=user&user[first_name]=John&user[last_name]=Doe&user[group_id]=10 body: headers: content-type: - application/json authorization: - Basic WHAT response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 201 message: Created headers: x-ua-compatible: - IE=Edge,chrome=1 location: - http://www.example.com/users/5 x-powered-by: - Phusion Passenger (mod_rails/mod_rack) 3.0.1 content-type: - application/json; charset=utf-8 x-runtime: - "0.053550" server: - Apache/2.2.3 (CentOS) date: - Wed, 13 Apr 2011 20:03:56 GMT set-cookie: - _onapp_session=WHAT; path=/; HttpOnly status: - "201" cache-control: - no-cache transfer-encoding: - chunked body: "{\"user\":{\"activated_at\":\"2011-04-13T20:03:56Z\",\"created_at\":\"2011-04-13T20:03:56Z\",\"total_amount\":0.0,\"remember_token_expires_at\":null,\"suspend_at\":null,\"memory_available\":null,\"used_ip_addresses\":[],\"deleted_at\":null,\"updated_at\":\"2011-04-13T20:03:56Z\",\"used_disk_size\":0,\"used_cpus\":0,\"used_cpu_shares\":0,\"activation_code\":null,\"billing_plan_id\":1,\"group_id\":null,\"id\":5,\"used_memory\":0,\"payment_amount\":\"0.0\",\"last_name\":\"Doe\",\"remember_token\":null,\"disk_space_available\":null,\"time_zone\":null,\"login\":\"user\",\"status\":\"active\",\"roles\":[],\"outstanding_amount\":0.0,\"email\":\"me@example.com\",\"first_name\":\"John\"}}" http_version: "1.1"