lib/gurke/configuration.rb in gurke-2.0.0.dev.1.b20 vs lib/gurke/configuration.rb in gurke-2.0.0.dev.1.b22
- old
+ new
@@ -1,7 +1,6 @@
module Gurke
- #
class Configuration
#
# Define a before filter running before given action.
#
# @example
@@ -104,10 +103,10 @@
end
end
def run(world, &block)
@before.each{|hook| hook.run world }
- @around.reduce(block){|blk, hook| proc{ hook.run world, blk }}.call
+ @around.reduce(block){|a, e| proc{ e.run world, a }}.call
ensure
@after.each do |hook|
begin
hook.run world
rescue => e