Last active
August 13, 2017 15:16
-
-
Save mariokostelac/7a68dba1077a5b6bfce10d0bb3fedb20 to your computer and use it in GitHub Desktop.
Code snippet used in https://medium.com/@mariokostelac/never-test-that-something-is-raising-standarderror-83bdc0deed01
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
def process(arg1) | |
raise SomeDeepPackagr::InvalidInputError.new(“#{arg1} is not negative”) if arg >= 0 | |
… | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment