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:
parent
33a3e77d10
commit
3e8f445570
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue