Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created October 19, 2011 14:32
Show Gist options
  • Save andrewpthorp/1298468 to your computer and use it in GitHub Desktop.
Save andrewpthorp/1298468 to your computer and use it in GitHub Desktop.
RSpec have_selector, which is more appropriate?
# First
content.should have_selector("a.current", :content => "Remove")
# Second
content.should have_selector("a.current", "Remove")
# Which one would you prefer, and why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment