aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides
diff options
context:
space:
mode:
Diffstat (limited to 'railties/doc/guides')
-rw-r--r--railties/doc/guides/testing_rails_applications/testing_rails_applications.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/railties/doc/guides/testing_rails_applications/testing_rails_applications.txt b/railties/doc/guides/testing_rails_applications/testing_rails_applications.txt
index f007dd5d0c..5ab2756780 100644
--- a/railties/doc/guides/testing_rails_applications/testing_rails_applications.txt
+++ b/railties/doc/guides/testing_rails_applications/testing_rails_applications.txt
@@ -71,14 +71,16 @@ But enough about theory.
As we all know, Ruby ships with a boat load of great libraries. If you're like me, you've only used a quarter of them or so. One little gem of a library is 'test/unit'. It comes packaged with Ruby 1.8.1, so there's nothing to download.
-By using one line of code `require 'test/unit'`, you arm your Ruby script with the capability to write tests.
+By using one line of code `require \'test/unit'`, you arm your Ruby script with the capability to write tests.
Let's show you a really basic test, and then we'll step through it and explain some details.
[source,ruby]
------------------------------------------------------
# hello_test.rb
+
require 'test/unit'
+
class HelloTestCase < Test::Unit::TestCase
def test_hello
assert true
@@ -190,9 +192,9 @@ We won't get into test suites in this article.
The relationship of these objects to one-another looks like this:
* a test suite
- - has many test cases
- * which have many tests
- - which have many assertions
+ * has many test cases
+ * which have many tests
+ * which have many assertions
== Hello World on Steroids ==