Permalink
Browse files

continuing

  • Loading branch information...
1 parent c5d4f80 commit fd79a6538f4fbc3c163630ce0d40a06871392ae6 Danish Khan committed Jan 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 koans/about_nil.rb
View
@@ -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

0 comments on commit fd79a65

Please sign in to comment.