Created
November 18, 2019 03:31
-
-
Save AndyDangerous/b9d1afe07faea5e135e3f8be8f31897e to your computer and use it in GitHub Desktop.
`Foo.new.rescuer` seems like it shouldn't fail, but does in CI
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
class Foo | |
class FooError < StandardError; end | |
def rescuer | |
failer | |
rescue FooError => e | |
puts "Rescued #{e}" | |
end | |
def failer | |
raise FooError.new("FAILED") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment