mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
fixed backwards compatibility, they were pointing to the wrong module
This commit is contained in:
parent
9eb66847e4
commit
4d85b8cdfc
2 changed files with 11 additions and 9 deletions
|
@ -50,6 +50,8 @@ module RestClient
|
|||
end
|
||||
|
||||
# backwards compatibility
|
||||
RestClient::Resource::Redirect = RestClient::Redirect
|
||||
RestClient::Resource::Unauthorized = RestClient::Unauthorized
|
||||
RestClient::Resource::RequestFailed = RestClient::RequestFailed
|
||||
class RestClient::Request
|
||||
Redirect = RestClient::Redirect
|
||||
Unauthorized = RestClient::Unauthorized
|
||||
RequestFailed = RestClient::RequestFailed
|
||||
end
|
||||
|
|
|
@ -27,15 +27,15 @@ describe RestClient::RequestFailed do
|
|||
end
|
||||
|
||||
describe "backwards compatibility" do
|
||||
it "alias RestClient::Resource::Redirect to RestClient::Redirect" do
|
||||
RestClient::Resource::Redirect.should == RestClient::Redirect
|
||||
it "alias RestClient::Request::Redirect to RestClient::Redirect" do
|
||||
RestClient::Request::Redirect.should == RestClient::Redirect
|
||||
end
|
||||
|
||||
it "alias RestClient::Resource::Unauthorized to RestClient::Unauthorized" do
|
||||
RestClient::Resource::Unauthorized.should == RestClient::Unauthorized
|
||||
it "alias RestClient::Request::Unauthorized to RestClient::Unauthorized" do
|
||||
RestClient::Request::Unauthorized.should == RestClient::Unauthorized
|
||||
end
|
||||
|
||||
it "alias RestClient::Resource::RequestFailed to RestClient::RequestFailed" do
|
||||
RestClient::Resource::RequestFailed.should == RestClient::RequestFailed
|
||||
it "alias RestClient::Request::RequestFailed to RestClient::RequestFailed" do
|
||||
RestClient::Request::RequestFailed.should == RestClient::RequestFailed
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue