Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created August 25, 2012 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karthiks/3468557 to your computer and use it in GitHub Desktop.
Save karthiks/3468557 to your computer and use it in GitHub Desktop.
DRY vs Soc 1
#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