Created
August 25, 2012 17:58
-
-
Save karthiks/3468557 to your computer and use it in GitHub Desktop.
DRY vs Soc 1
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
#my_target_page.rb | |
def verify_edit_link_presence | |
has_link?("Edit").should be_true | |
end | |
#my_target_spec | |
it "blah blah blah" | |
@my_target_page.do_some_action | |
@my_target_page.verify_edit_link_presence | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment