Created
August 15, 2017 20:30
-
-
Save frostmark/0cbd833a88ec778b710e92aa6492080e to your computer and use it in GitHub Desktop.
testing modules in isolation(medium)
This file contains 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
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