public
Description: Life On The Edge With Merb, DataMapper & RSpec
Homepage: http://blog.new-bamboo.co.uk
Clone URL: git://github.com/deimos1986/book_mdar.git
Change the RSpec intro to read a bit nicer and correct DLS -> DSL
geoffgarside (author)
Wed Jul 16 02:22:39 -0700 2008
commit  c666e16c994f7a2f383cdb8293153bd822e9e2f9
tree    2c9ef3f165f5283c2cce5c8396dd380933bfe787
parent  00724bcf114c266fc9dc4cd358760faf1d842a09
...
1
2
3
4
 
 
5
6
7
8
 
 
9
10
11
 
 
12
13
14
...
1
2
 
 
3
4
5
6
 
 
7
8
9
10
 
11
12
13
14
15
0
@@ -1,14 +1,15 @@
0
 ## RSpec
0
 
0
-Rspec is a way of writing human readable tests, it's a DLS which changes the
0
-language and syntax to its more readable.
0
+RSpec is a testing framework which uses a Domain Specific Language or DSL to
0
+provide more human readable test code.
0
 
0
 When using stubs with RSpec you can roughly categorise the methods you are
0
-going to use into two categories. On one side you have the sub! and
0
-should_receive methods which refine what methods you expect to be called
0
+going to use into two categories. On one side you have the `stub!` and
0
+`should_receive` methods which refine what methods you expect to be called
0
 with what parameters and potentially what they should return in the case of
0
 the test being run. On the other side you have assertions which test the output
0
-and value or variables. The should method is primarily used when asserting things.
0
+and value or variables. The `should` method is primarily used when asserting
0
+specific results.
0
 
0
 
0
 #### What to test?

Comments

    No one has commented yet.