Skip to content

Commit

Permalink
[Specs] Fix REST mock to forward configure block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Mar 3, 2014
1 parent 0e8b706 commit 5ad3982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/rest_mock.rb
Expand Up @@ -9,10 +9,10 @@ class << self
alias _perform perform
end

def self.perform(*args)
def self.perform(*args, &configure_block)
REST::Request._performed ||= []
REST::Request._performed << args
_perform(*args)
_perform(*args, &configure_block)
end

alias _http_request http_request
Expand Down

0 comments on commit 5ad3982

Please sign in to comment.