Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

continuing

  • Loading branch information...
commit fd79a6538f4fbc3c163630ce0d40a06871392ae6 1 parent c5d4f80
Danish Khan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 koans/about_nil.rb
View
4 koans/about_nil.rb
@@ -13,11 +13,11 @@ def test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil
nil.some_method_nil_doesnt_know_about
rescue Exception => ex
# What exception has been caught?
- assert_equal __, ex.class
+ assert_equal NoMethodError, ex.class
# What message was attached to the exception?
# (HINT: replace __ with part of the error message.)
- assert_match(/__/, ex.message)
+ assert_match(/undefined method/, ex.message)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.