Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change returning to Object#tap.

  • Loading branch information...
commit 1b72c5ece92086868bff194f8f8349d018f79a34 1 parent 9a5178c
@danielmorrison danielmorrison authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  lib/with_action.rb
  2. +0 −1  test/with_action_test.rb
View
2  lib/with_action.rb
@@ -25,7 +25,7 @@ def any(&block)
method_missing(:any) do
# reset
@order, @responses = [], {}
- returning block.call do
+ block.call.tap do
respond
end
end
View
1  test/with_action_test.rb
@@ -2,7 +2,6 @@
require 'rubygems'
require 'active_support'
require 'mocha'
-require 'stubba'
require File.dirname(__FILE__) + '/../lib/with_action'
class WithActionTest < Test::Unit::TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.