Skip to content

Commit

Permalink
TagExpression.eval is deprecated, so we use evaluate() instead.
Browse files Browse the repository at this point in the history
Fixes #420
  • Loading branch information
os97673 committed Apr 6, 2013
1 parent 30ec125 commit d3f7ebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cucumber/ast/has_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/ast/tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3f7ebe

Please sign in to comment.