tracks/ruby/exercises/hello-world/GETTING_STARTED.md in trackler-2.1.0.42 vs tracks/ruby/exercises/hello-world/GETTING_STARTED.md in trackler-2.1.0.43

- old
+ new

@@ -36,25 +36,26 @@ syntax error, unexpected end-of-input, expecting '(' On OS X and Linux, the error will be something like: + # Running: - ESS + E - Finished in 0.001539s, 2599.0903 runs/s, 0.0000 assertions/s. + Finished in 0.001328s, 753.0121 runs/s, 0.0000 assertions/s. - 1) Error: - HelloWorldTest#test_no_name: + 1) Error: + HelloWorldTest#test_say_hi: NameError: uninitialized constant HelloWorldTest::HelloWorld - hello-world/hello_world_test.rb:20:in `test_no_name' - - 3 runs, 0 assertions, 0 failures, 1 errors, 2 skips - - You have skipped tests. Run with --verbose for details. + Did you mean? HelloWorldTest + hello_world_test.rb:19:in `test_say_hi' + 1 runs, 0 assertions, 0 failures, 1 errors, 0 skips + + Within the first test, we are referencing a constant named `HelloWorld` when we say `HelloWorld.hello`. When Ruby sees a capitalized name like `HelloWorld`, it looks it up in a big huge list of all the constants it knows about, to see what it points to. It could point to anything, and often in Ruby we have constants that point to definitions of classes or modules. @@ -67,23 +68,10 @@ To fix it, open up the hello_world.rb file and add the following code: class HelloWorld end -### Understanding Test Failures - -Whether you are on Windows, Mac OS X or Linux, you will eventually be faced with -errors and failures that look a lot like the Mac OS X / Linux error above. - -The letters `ESS` show that there are three tests altogether, -that one of them has an error (`E`), and that two of them are skipped (`SS`). - -The goal is to have three passing tests, which will show as three dots: `...`. - -The tests are run in randomized order, which will cause the letters to display -in random order as well. - ## Step 3 Run the test again. 1) Error: @@ -128,20 +116,9 @@ If it fails you're going to need to read the error message carefully to figure out what went wrong, and then try again. If it passes, then you're ready to move to the next step. - -Open the hello_world_test.rb file, and find the word "skip". All but the first test -start with "skip", which tells Minitest to ignore the test. This is so that -you don't have to deal with all the failures at once. - -To activate the next test, delete the "skip", and run the test suite again. - -## Wash, Rinse, Repeat - -Delete one "skip" at a time, and make each test pass before you move to the -next one. ## Submit When everything is passing, you can submit your code with the following command: