From e0e42cc62772a2e610d4b699bbd21682db1a3b4b Mon Sep 17 00:00:00 2001 From: Vincent Pretre Date: Fri, 24 Jan 2020 10:14:51 +0100 Subject: [PATCH] WIP: Hooks now need an ID to be generated We'll need a way to figure how to query for a new ID using the ID generator from cucumber --- lib/cucumber/wire/add_hooks_filter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cucumber/wire/add_hooks_filter.rb b/lib/cucumber/wire/add_hooks_filter.rb index 609b235..f20d77f 100644 --- a/lib/cucumber/wire/add_hooks_filter.rb +++ b/lib/cucumber/wire/add_hooks_filter.rb @@ -11,13 +11,13 @@ def test_case(test_case) def before_hook(test_case) # TODO: is this dependency on Cucumber::Hooks OK? Feels a bit internal.. # TODO: how do we express the location of the hook? Should we create one hook per connection so we can use the host:port of the connection? - Cucumber::Hooks.before_hook(Core::Test::Location.new('TODO:wire')) do + Cucumber::Hooks.before_hook('TODO:wire-hook-id', Core::Test::Location.new('TODO:wire')) do connections.begin_scenario(test_case) end end def after_hook(test_case) - Cucumber::Hooks.after_hook(Core::Test::Location.new('TODO:wire')) do + Cucumber::Hooks.after_hook('TODO:wire-hook-id', Core::Test::Location.new('TODO:wire')) do connections.end_scenario(test_case) end end