Sha256: 9133d521640fa3a442366dac91d4fd3e02a5d201131595a9851ff455ac7aea07

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true
require 'cucumber/core/filter'

module Cucumber
  module Filters
    class ApplyAroundHooks < Core::Filter.new(:hooks)
      def test_case(test_case)
        around_hooks = hooks.find_around_hooks(test_case)
        test_case.with_around_hooks(around_hooks).describe_to(receiver)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-3.1.0 lib/cucumber/filters/apply_around_hooks.rb
cucumber-3.0.2 lib/cucumber/filters/apply_around_hooks.rb
cucumber-3.0.1 lib/cucumber/filters/apply_around_hooks.rb
cucumber-3.0.0 lib/cucumber/filters/apply_around_hooks.rb
cucumber-3.0.0.pre.2 lib/cucumber/filters/apply_around_hooks.rb
cucumber-3.0.0.pre.1 lib/cucumber/filters/apply_around_hooks.rb