@@ -40,14 +40,18 @@ On OS X and Linux, the error will be something like:
40
40
41
41
# Running:
42
42
43
- ESSS
43
+ ESS
44
44
45
45
Finished in 0.001539s, 2599.0903 runs/s, 0.0000 assertions/s.
46
46
47
47
1) Error:
48
48
HelloWorldTest#test_no_name:
49
49
NameError: uninitialized constant HelloWorldTest::HelloWorld
50
- hello-world/hello_world_test.rb:5:in `test_no_name'
50
+ hello-world/hello_world_test.rb:20:in `test_no_name'
51
+
52
+ 3 runs, 0 assertions, 0 failures, 1 errors, 2 skips
53
+
54
+ You have skipped tests. Run with --verbose for details.
51
55
52
56
Within the first test, we are referencing a constant named ` HelloWorld ` when
53
57
we say ` HelloWorld.hello ` . When Ruby sees a capitalized name like
@@ -70,10 +74,10 @@ To fix it, open up the hello_world.rb file and add the following code:
70
74
Whether you are on Windows, Mac OS X or Linux, you will eventually be faced with
71
75
errors and failures that look a lot like the Mac OS X / Linux error above.
72
76
73
- The letters ` ESSS ` show that there are four tests altogether,
74
- that one of them has an error (` E ` ), and that three of them are skipped (` S ` ).
77
+ The letters ` ESS ` show that there are three tests altogether,
78
+ that one of them has an error (` E ` ), and that two of them are skipped (` SS ` ).
75
79
76
- The goal is to have four passing tests, which will show as four dots: ` . ...` .
80
+ The goal is to have three passing tests, which will show as three dots: ` ... ` .
77
81
78
82
The tests are run in randomized order, which will cause the letters to display
79
83
in random order as well.
@@ -85,7 +89,7 @@ Run the test again.
85
89
1) Error:
86
90
HelloWorldTest#test_no_name:
87
91
NoMethodError: undefined method `hello' for HelloWorld:Class
88
- hello_world_test.rb:5 :in `test_no_name'
92
+ hello_world_test.rb:20 :in `test_no_name'
89
93
90
94
This time we have a ` HelloWorld ` , but we're trying tell it to ` hello ` , and
91
95
` HelloWorld ` doesn't understand that message.
0 commit comments