Sha256: 9e706dc430f4dbc9d3e2a74bbb238d8e2c8cded8393c30fc0178d89366a1025d

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

require "spec_helper"

describe "CaseCreationError" do
	it "takes a response code as an argument" do
		response  = {:body => "Some response body", :code => 200, :message => "OK", :headers => "{\"cache-control\"=>[\"max-age=0, private, must-revalidate\"], \"content-type\"=>[\"text/html; charset=utf-8\"], \"date\"=>[\"Tue, 03 Sep 2013 09:08:46 GMT\"], \"etag\"=>[\"\\\"5227248b169c57e9d14b14305c23c78e\\\"\"], \"server\"=>[\"nginx/1.1.19\"], \"set-cookie\"=>[\"_cb-website_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTExNmE1YTQyZDIyZDU1OWE3OWI1MjRhZmY2NDYxOWZmBjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMXMzOWpTdlV4OHA5d0VnTHppZ0s0T0FwdXl1THpvL3B6QWI5dFNpTTc4Q3M9BjsARg%3D%3D--af61c2cc1a1dc9d40c855444a34340796beafd02; path=/; HttpOnly\"], \"status\"=>[\"200 OK\"], \"vary\"=>[\"Accept-Encoding\"], \"x-rack-cache\"=>[\"miss\"], \"x-request-id\"=>[\"76f22dade32f143db6a89d4f1c17dea0\"], \"x-runtime\"=>[\"0.055758\"], \"x-ua-compatible\"=>[\"IE=Edge,chrome=1\"], \"transfer-encoding\"=>[\"chunked\"], \"connection\"=>[\"Close\"]}"}
		exception = CaseblocksAPI::CaseCreationError.new("message", response)
		exception.response.should eql response
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
caseblocks_api-0.2.20 spec/lib/caseblocks_api/case_creation_error_spec.rb
caseblocks_api-0.2.19 spec/lib/caseblocks_api/case_creation_error_spec.rb
caseblocks_api-0.2.18 spec/lib/caseblocks_api/case_creation_error_spec.rb
caseblocks_api-0.2.17 spec/lib/caseblocks_api/case_creation_error_spec.rb
caseblocks_api-0.2.16 spec/lib/caseblocks_api/case_creation_error_spec.rb