13 Jan 2013, 10:08
20120621_115648_pragsmall

Rahul Panjiyar (6 posts)

Hi, I am getting error as: Tables were not identical (Cucumber::Ast::Table::Different) when using diff! in my code. I had followed same code as in the book.

Then /^the results should be:$/ do |expected_results|
results = [['content']] + page.all('ol.results li').map do |li|
    [li.text]
    end 
  expected_results.diff!(results)
end

I had also refer most of the site related these issue, as using transpose before diff! method i was wasn’t success. Also, i had followed https://github.com/cucumber/cucumber/issues/220 , but got no effect on this error. Can u define me where i had made mistake?

16 Jan 2013, 10:05
Avatar_pragsmall

Matt Wynne (85 posts)

Can you put the complete output from Cucumber into a gist?

  You must be logged in to comment