Skip to content

Commit

Permalink
Merge branch 'add-ids-to-elements' into fire-events
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-psarga committed Jan 24, 2020
2 parents fea1158 + e0e42cc commit f9fc78c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cucumber/wire/add_hooks_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9fc78c

Please sign in to comment.