spec/api-client/dispatcher_spec.rb in api-client-2.0.0.rc1 vs spec/api-client/dispatcher_spec.rb in api-client-2.0.0.rc2
- old
+ new
@@ -1,37 +1,37 @@
require 'spec_helper'
describe ApiClient::Dispatcher do
before :each do
- stub_request(:any, "http://api.example.com/user/5").to_return(:body => "asd")
+ stub_request(:any, 'http://api.example.com/user/5').to_return(:body => 'asd')
end
- describe "#get" do
- it "should return the request" do
- ApiClient::Dispatcher.get("http://api.example.com/user/5", {}).body.should == ("asd")
+ describe '.get' do
+ it 'should return the request' do
+ ApiClient::Dispatcher.get('http://api.example.com/user/5', {}).body.should == ('asd')
end
end
- describe "#post" do
- it "should return the request" do
- ApiClient::Dispatcher.post("http://api.example.com/user/5", {}, {}).body.should == ("asd")
+ describe '.post' do
+ it 'should return the request' do
+ ApiClient::Dispatcher.post('http://api.example.com/user/5', {}, {}).body.should == ('asd')
end
end
- describe "#put" do
- it "should return the request" do
- ApiClient::Dispatcher.put("http://api.example.com/user/5", {}, {}).body.should == ("asd")
+ describe '.put' do
+ it 'should return the request' do
+ ApiClient::Dispatcher.put('http://api.example.com/user/5', {}, {}).body.should == ('asd')
end
end
- describe "#patch" do
- it "should return the request" do
- ApiClient::Dispatcher.patch("http://api.example.com/user/5", {}, {}).body.should == ("asd")
+ describe '.patch' do
+ it 'should return the request' do
+ ApiClient::Dispatcher.patch('http://api.example.com/user/5', {}, {}).body.should == ('asd')
end
end if ApiClient::Dispatcher.respond_to?(:patch)
- describe "#delete" do
- it "should return the request" do
- ApiClient::Dispatcher.delete("http://api.example.com/user/5", {}).body.should == ("asd")
+ describe '.delete' do
+ it 'should return the request' do
+ ApiClient::Dispatcher.delete('http://api.example.com/user/5', {}).body.should == ('asd')
end
end
end
\ No newline at end of file