diff --git a/lib/cucumber/ast/has_steps.rb b/lib/cucumber/ast/has_steps.rb index 31c490beaf..c6744aff3f 100644 --- a/lib/cucumber/ast/has_steps.rb +++ b/lib/cucumber/ast/has_steps.rb @@ -54,7 +54,7 @@ def max_line_length end def accept_hook?(hook) - Gherkin::TagExpression.new(hook.tag_expressions).eval(source_tags) + Gherkin::TagExpression.new(hook.tag_expressions).evaluate(source_tags) end def source_tag_names diff --git a/lib/cucumber/ast/tags.rb b/lib/cucumber/ast/tags.rb index 7d522906a4..99dc099a90 100644 --- a/lib/cucumber/ast/tags.rb +++ b/lib/cucumber/ast/tags.rb @@ -17,7 +17,7 @@ def accept(visitor) end def accept_hook?(hook) - Gherkin::TagExpression.new(hook.tag_expressions).eval(@tags) + Gherkin::TagExpression.new(hook.tag_expressions).evaluate(@tags) end def to_sexp