Created
October 19, 2011 14:32
-
-
Save andrewpthorp/1298468 to your computer and use it in GitHub Desktop.
RSpec have_selector, which is more appropriate?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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