Thursday, December 23, 2010

Diffing tables in Cucumber


Then /^I should see the following within "([^"]*)" area:$/ do |selector, table|
actual_table = tableish("table#{selector} tr", "td,th" ).to_a
table.diff!(actual_table)
end


references:
https://github.com/aslakhellesoy/cucumber/wiki/multiline-step-arguments
http://railscasts.com/episodes/186-pickle-with-cucumber

No comments:

Blog Archive