dmaisells
5 years agoOccasional Contributor
feature is coming up nil in query.rb
I recently updated a bunch of gems including Chromedriver, cucumber, capybara, selenium-webdriver. Everything was working fine before. Now I get the following error. The token (feature is undefined)....
undefined method `tags' for nil:NilClass (NoMethodError)
../.rvm/gems/ruby-2.3.0/gems/cucumber-gherkin-13.0.0/lib/gherkin/query.rb:19:in `update_feature'
def update_feature(feature)
store_nodes_location(feature.tags)
feature.children.each do |child|
update_rule(child.rule) if child.rule
update_background(child.background) if child.background
update_scenario(child.scenario) if child.scenario
end
end