--- - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :post uri: http://user:pass@www.example.com:80/roles.json?role[identifier]=testing&role[label]=Test 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 x-runtime: - "0.008168" server: - Apache/2.2.3 (CentOS) date: - Mon, 18 Apr 2011 14:51:07 GMT set-cookie: - _onapp_session=WHAT; path=/; HttpOnly status: - "422" cache-control: - no-cache transfer-encoding: - chunked body: "{\"identifier\":[\"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/roles.json?role[identifier]=testing-create&role[label]=Test%20Create 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/roles/7 x-powered-by: - Phusion Passenger (mod_rails/mod_rack) 3.0.1 content-type: - application/json; charset=utf-8 x-runtime: - "0.019195" server: - Apache/2.2.3 (CentOS) date: - Mon, 18 Apr 2011 14:54:29 GMT set-cookie: - _onapp_session=WHAT; path=/; HttpOnly status: - "201" cache-control: - no-cache transfer-encoding: - chunked body: "{\"role\":{\"label\":\"Test Create\",\"created_at\":\"2011-04-18T14:54:29Z\",\"updated_at\":\"2011-04-18T14:54:29Z\",\"id\":7,\"permissions\":[],\"identifier\":\"testing-create\"}}" http_version: "1.1"