1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

The Zen of Learning Ruby


3 of 3

The Path to Ruby Enlightenment

Your first error should read something like the following.

Thinking AboutAsserts
  test_assert_truth has damaged your karma.

You have not yet reached enlightenment ...
Failed assertion, no message given.

Please meditate on the following code:
/home/user/tmp/koans/about_asserts.rb:10:in `test_assert_truth'

What do you do? Open up about_asserts.rb in a text editor and go to line 10. Fix the test so it will pass. In this case, replace false with true. In most cases, replace a double underline with a value that will make the test pass. Then run the tests again, and move on to the next test. Do this a few hundred times and you'll know Ruby!

  1. About.com
  2. Technology
  3. Ruby
  4. Beginning Ruby
  5. The Path to Ruby Enlightenment

©2014 About.com. All rights reserved.