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
|
end
|
||||||
|
|
||||||
# backwards compatibility
|
# backwards compatibility
|
||||||
RestClient::Resource::Redirect = RestClient::Redirect
|
class RestClient::Request
|
||||||
RestClient::Resource::Unauthorized = RestClient::Unauthorized
|
Redirect = RestClient::Redirect
|
||||||
RestClient::Resource::RequestFailed = RestClient::RequestFailed
|
Unauthorized = RestClient::Unauthorized
|
||||||
|
RequestFailed = RestClient::RequestFailed
|
||||||
|
end
|
||||||
|
|
|
@ -27,15 +27,15 @@ describe RestClient::RequestFailed do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "backwards compatibility" do
|
describe "backwards compatibility" do
|
||||||
it "alias RestClient::Resource::Redirect to RestClient::Redirect" do
|
it "alias RestClient::Request::Redirect to RestClient::Redirect" do
|
||||||
RestClient::Resource::Redirect.should == RestClient::Redirect
|
RestClient::Request::Redirect.should == RestClient::Redirect
|
||||||
end
|
end
|
||||||
|
|
||||||
it "alias RestClient::Resource::Unauthorized to RestClient::Unauthorized" do
|
it "alias RestClient::Request::Unauthorized to RestClient::Unauthorized" do
|
||||||
RestClient::Resource::Unauthorized.should == RestClient::Unauthorized
|
RestClient::Request::Unauthorized.should == RestClient::Unauthorized
|
||||||
end
|
end
|
||||||
|
|
||||||
it "alias RestClient::Resource::RequestFailed to RestClient::RequestFailed" do
|
it "alias RestClient::Request::RequestFailed to RestClient::RequestFailed" do
|
||||||
RestClient::Resource::RequestFailed.should == RestClient::RequestFailed
|
RestClient::Request::RequestFailed.should == RestClient::RequestFailed
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue