Skip to content

Instantly share code, notes, and snippets.

@moretea
Created June 11, 2010 10:46
Show Gist options
  • Save moretea/434348 to your computer and use it in GitHub Desktop.
Save moretea/434348 to your computer and use it in GitHub Desktop.
Then /^I should see that the name of the "([^"]*)" project is "([^"]*)"$/ do |number, name|
locate(:xpath, "//ul[@id='project_summary']/li[#{number.to_i}]//a[@class='project']").should have_content(name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment