Last active
August 13, 2017 15:16
-
-
Save mariokostelac/819898fc2f5675667547544664b6d277 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 SomeDeepPackage::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