public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
Search Repo:
Fix some layout/styiling problems.
Hongli Lai (Phusion) (author)
Sun Jul 20 09:06:16 -0700 2008
commit  e2d283543f2092c49d58857a30e05442a7686a36
tree    7ca842304d2b415b03093e67e4d0fbd8ab420b6e
parent  90f8b192f70a3560f6f86e8eb73432011364ac5d
...
71
72
73
74
 
75
76
77
78
79
80
 
81
 
82
83
84
...
190
191
192
193
194
195
 
 
 
196
197
198
...
71
72
73
 
74
75
76
77
78
79
80
81
82
83
84
85
86
...
192
193
194
 
 
 
195
196
197
198
199
200
0
@@ -71,14 +71,16 @@ But enough about theory.
0
 
0
 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.
0
 
0
-By using one line of code `require 'test/unit'`, you arm your Ruby script with the capability to write tests.
0
+By using one line of code `require \'test/unit'`, you arm your Ruby script with the capability to write tests.
0
 
0
 Let's show you a really basic test, and then we'll step through it and explain some details.
0
 
0
 [source,ruby]
0
 ------------------------------------------------------
0
 # hello_test.rb
0
+
0
 require 'test/unit'
0
+
0
 class HelloTestCase < Test::Unit::TestCase
0
   def test_hello
0
     assert true
0
@@ -190,9 +192,9 @@ We won't get into test suites in this article.
0
 The relationship of these objects to one-another looks like this:
0
 
0
  * a test suite
0
- - has many test cases
0
- * which have many tests
0
- - which have many assertions
0
+ * has many test cases
0
+ * which have many tests
0
+ * which have many assertions
0
 
0
 
0
 == Hello World on Steroids ==

Comments

    No one has commented yet.