Created
November 28, 2011 01:43
-
-
Save cherring/1398747 to your computer and use it in GitHub Desktop.
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
| def should_see(content_array) | |
| content_array.each { |text| page.should have_content(text) } | |
| end | |
| def should_not_see(content_array) | |
| content_array.each { |text| page.should_not have_content(text) } | |
| end | |
| def should_be_on(page) | |
| current_path = URI.parse(current_url).path | |
| current_path.should == page | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment