1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

actually assert in spec, and fix result

This commit is contained in:
Jon Rowe 2013-07-31 21:57:31 +10:00
parent 0b6e74593a
commit f498c6cf6f

View file

@ -28,7 +28,7 @@ describe RestClient::AbstractResponse do
it "has a nice description" do
@net_http_res.should_receive(:to_hash).and_return({'Content-Type' => ['application/pdf']})
@net_http_res.should_receive(:code).and_return('200')
@response.description == '200 OK | application/pdf bytes\n'
@response.description.should eq "200 OK | application/pdf bytes\n"
end
it "beautifies the headers by turning the keys to symbols" do