Skip to content

Instantly share code, notes, and snippets.

@lsiden
Created July 19, 2010 02:14
Show Gist options
  • Save lsiden/480926 to your computer and use it in GitHub Desktop.
Save lsiden/480926 to your computer and use it in GitHub Desktop.
Then /^I should see a link to "([^\"]*)" with text "([^\"]*)"$/ do |url, text|
pp self
pp response_body.class
puts response_body.public_methods.sort
#response_body.should have_selector("a[href='#{ url }']") do |element|
response_body.should have_selector('a', {'href' => 'mem_direct.php'}) do |element|
pp element
element.should contain(text)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment