Method: Cucumber::RunningTestCase::TestCase#accept_hook?

Defined in:
lib/cucumber/running_test_case.rb

#accept_hook?(hook) ⇒ Boolean

Returns:

  • (Boolean)
[View source] [View on GitHub]

30
31
32
# File 'lib/cucumber/running_test_case.rb', line 30

def accept_hook?(hook)
  hook.tag_expressions.all? { |expression| @test_case.match_tags?(expression) }
end