Skip to content
Browse files

Forgot the raw delegation

  • Loading branch information...
1 parent 4cd9fb2 commit 58dbaf115c9c4018bea68604e09eedaccfa3a168 Marcin Bunsch committed Jan 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/api_client/base.rb
  2. +1 −1 spec/api_client/base/delegation_spec.rb
View
2 lib/api_client/base.rb
@@ -14,7 +14,7 @@ class << self
extend ApiClient::Mixins::Delegation
extend ApiClient::Mixins::Configuration
- delegate :fetch, :get, :put, :post, :delete, :headers, :endpoint, :options, :adapter, :params, :to => :scope
+ delegate :fetch, :get, :put, :post, :delete, :headers, :endpoint, :options, :adapter, :params, :raw, :to => :scope
dsl_accessor :format, :namespace
View
2 spec/api_client/base/delegation_spec.rb
@@ -5,7 +5,7 @@
it "delegates methods to scope" do
scope = mock
ApiClient::Base.stub(:scope).and_return(scope)
- [:fetch, :get, :put, :post, :delete, :headers, :endpoint, :options, :adapter, :params].each do |method|
+ [:fetch, :get, :put, :post, :delete, :headers, :endpoint, :options, :adapter, :params, :raw].each do |method|
scope.should_receive(method)
ApiClient::Base.send(method)
end

0 comments on commit 58dbaf1

Please sign in to comment.
Something went wrong with that request. Please try again.