Sha256: 9281a614f3ea432b193d673e43a5eaedba4df3aa486864be5602d3e464b64884
Contents?: true
Size: 642 Bytes
Versions: 13
Compression:
Stored size: 642 Bytes
Contents
module Cucumber module Formatter class HookQueryVisitor attr_reader :type def initialize(test_step) @hook = false @type = :no_hook test_step.source.last.describe_to(self) end def hook? @hook end def step(*) end def before_hook(*) @hook = true @type = :before end def after_hook(*) @hook = true @type = :after end def after_step_hook(*) @hook = true @type = :after_step end def around_hook(*) @hook = true @type = :around end end end end
Version data entries
13 entries across 13 versions & 2 rubygems