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

Add compatibility tests.

This commit is contained in:
Andy Brody 2015-11-11 17:20:48 -08:00
parent 33a3e77d10
commit 3e8f445570

View file

@ -85,6 +85,12 @@ describe "backwards compatibility" do
RestClient::ResourceNotFound.should eq RestClient::NotFound
end
it 'aliases old names for HTTP 413, 414, 416' do
RestClient::RequestEntityTooLarge.should eq RestClient::PayloadTooLarge
RestClient::RequestURITooLong.should eq RestClient::URITooLong
RestClient::RequestedRangeNotSatisfiable.should eq RestClient::RangeNotSatisfiable
end
it 'subclasses NotFound from RequestFailed, ExceptionWithResponse' do
RestClient::NotFound.should be < RestClient::RequestFailed
RestClient::NotFound.should be < RestClient::ExceptionWithResponse