Skip to content

Instantly share code, notes, and snippets.

@frostmark
Created August 15, 2017 20:30
Show Gist options
  • Save frostmark/0cbd833a88ec778b710e92aa6492080e to your computer and use it in GitHub Desktop.
Save frostmark/0cbd833a88ec778b710e92aa6492080e to your computer and use it in GitHub Desktop.
testing modules in isolation(medium)
module Policy
def can_destroy?(current_user)
user&.id == current_user.id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment