Skip to content

Instantly share code, notes, and snippets.

@pat
Created July 21, 2011 01:43
Show Gist options
  • Save pat/1096339 to your computer and use it in GitHub Desktop.
Save pat/1096339 to your computer and use it in GitHub Desktop.
Check definition pair in a definition list
Then /^"([^"]*)" should be set as "([^"]*)"$/ do |term, definition|
first(:xpath, "//dd[preceding-sibling::dt[.='#{term}']]").text.
should == definition
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment