aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2008-07-20 18:06:16 +0200
committerHongli Lai (Phusion) <hongli@phusion.nl>2008-07-20 18:06:16 +0200
commite2d283543f2092c49d58857a30e05442a7686a36 (patch)
tree7ca842304d2b415b03093e67e4d0fbd8ab420b6e /railties/doc
parent90f8b192f70a3560f6f86e8eb73432011364ac5d (diff)
downloadrails-e2d283543f2092c49d58857a30e05442a7686a36.tar.gz
rails-e2d283543f2092c49d58857a30e05442a7686a36.tar.bz2
rails-e2d283543f2092c49d58857a30e05442a7686a36.zip
Fix some layout/styiling problems.
Diffstat (limited to 'railties/doc')
-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 ==