Last active
August 14, 2017 10:37
-
-
Save mariokostelac/992bd2a11f140ade192df2d26fe5afd6 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
describe “.process” do | |
it “raises if arg1 is not negative” do | |
expect { process(0) }.to raise_error(StandardError) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment