spec/hooks_spec.rb in moosex-0.0.12 vs spec/hooks_spec.rb in moosex-0.0.13

- old
+ new

@@ -33,12 +33,12 @@ h.sum(1,2,3).should == 6 end end class Hooks2 < Hooks - around(:sum) do |original_method, object, a,b,c| + around(:sum) do |method_lambda, object, a,b,c| object.logger.inside_around_begin(a,b,c) - result = original_method.bind(object).call(a,b,c) + result = method_lambda.call(object,a,b,c) object.logger.inside_around_end(a,b,c) result + 1 end after(:sum) do |object,a,b,c| \ No newline at end of file