Skip to content

Instantly share code, notes, and snippets.

@AndyDangerous
Created November 18, 2019 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyDangerous/b9d1afe07faea5e135e3f8be8f31897e to your computer and use it in GitHub Desktop.
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
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