summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-08-24 15:41:53 +0200
committeranonym <anonym@riseup.net>2016-08-24 15:41:53 +0200
commit1e7bc244f198c28984d625c314196fbf513980a2 (patch)
tree4e44e63c03ffb31ec475b70c74eff235e17aa27f
parentbd961bd8ca6304375e750cf9bb29e4167134d93f (diff)
Fix the 'debug' formatter in Cucumber 2.4.0.
It needs the same "strange workaround" as we had to apply to the ExtraHooks formatter. Refs: #11690
-rw-r--r--features/support/extra_hooks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/extra_hooks.rb b/features/support/extra_hooks.rb
index 5994458..04526d5 100644
--- a/features/support/extra_hooks.rb
+++ b/features/support/extra_hooks.rb
@@ -133,8 +133,8 @@ module ExtraFormatters
# The pretty formatter with debug logging mixed into its output.
class PrettyDebug < Cucumber::Formatter::Pretty
- def initialize(*args)
- super(*args)
+ def initialize(runtime, io, options)
+ super(runtime, io, options)
$debug_log_fns ||= []
$debug_log_fns << self.method(:debug_log)
end