mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Updatd exception koan to be clearer about StandardError VS RuntimeError
This commit is contained in:
@@ -22,8 +22,8 @@ class AboutExceptions < EdgeCase::Koan
|
||||
|
||||
assert_equal __, result
|
||||
|
||||
assert ex.is_a?(__)
|
||||
assert_equal __, ex.message
|
||||
assert_equal __, ex.is_a?(StandardError), "Should be a Standard Error"
|
||||
assert_equal __, ex.is_a?(RuntimeError), "Should be a Runtime Error"
|
||||
|
||||
assert RuntimeError.ancestors.include?(StandardError),
|
||||
"RuntimeError is a subclass of StandardError"
|
||||
|
||||
Reference in New Issue
Block a user