Created
May 12, 2011 16:54
-
-
Save micahalles/968931 to your computer and use it in GitHub Desktop.
capybara #has_css? example
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
page.should have_css("#main-nav") | |
page.should have_css(".posts .post", text: "Angry capybara") | |
page.should have_css(".post .comments", count: 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment