Skip to content

Instantly share code, notes, and snippets.

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