Skip to content

Commit

Permalink
Use new Cucumber StepMatchSearch API
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Dec 1, 2015
1 parent 6472277 commit 6b4cda7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/cucumber/wire/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'cucumber/wire/connections'
require 'cucumber/wire/add_hooks_filter'
require 'cucumber/step_match_search'

module Cucumber
module Wire
Expand All @@ -13,7 +14,7 @@ def initialize(config)

def install
connections = Connections.new(wire_files.map { |f| create_connection(f) }, @config)
config.filters << Filters::ActivateSteps.new(connections, @config)
config.filters << Filters::ActivateSteps.new(StepMatchSearch.new(connections.method(:step_matches), @config), @config)
config.filters << AddHooksFilter.new(connections) unless @config.dry_run?
config.register_snippet_generator Snippet::Generator.new(connections)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/wire/protocol/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def create_step_match(raw_step_match)
end

def step_match(step_definition, step_args)
StepMatch.new(step_definition, @name_to_match, @name_to_report, step_args)
StepMatch.new(step_definition, @name_to_match, step_args)
end
end

Expand Down

0 comments on commit 6b4cda7

Please sign in to comment.