aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorMatt Duncan <mrduncan@gmail.com>2011-04-13 20:32:36 -0400
committerMatt Duncan <mrduncan@gmail.com>2011-04-13 20:32:36 -0400
commite56b19bbed275bd6d2bd0574300e5f0f6b85add0 (patch)
treefbe882c64eddfbeb5784baaf1b4ec0c8c7b92ea6 /railties/guides
parent1447ff56545f53101c5fddbdea5667a8ff68cd8e (diff)
downloadrails-e56b19bbed275bd6d2bd0574300e5f0f6b85add0.tar.gz
rails-e56b19bbed275bd6d2bd0574300e5f0f6b85add0.tar.bz2
rails-e56b19bbed275bd6d2bd0574300e5f0f6b85add0.zip
Aligning table cells
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/testing.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile
index 2809c6d076..3b4cb3d8a5 100644
--- a/railties/guides/source/testing.textile
+++ b/railties/guides/source/testing.textile
@@ -415,8 +415,8 @@ NOTE: +assert_valid(record)+ has been deprecated. Please use +assert(record.vali
|_.Assertion |_.Purpose|
|+assert_valid(record)+ |Ensures that the passed record is valid by Active Record standards and returns any error messages if it is not.|
-|+assert_difference(expressions, difference = 1, message = nil) {...}+ |Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block.|
-|+assert_no_difference(expressions, message = nil, &amp;block)+ |Asserts that the numeric result of evaluating an expression is not changed before and after invoking the passed in block.|
+|+assert_difference(expressions, difference = 1, message = nil) {...}+ |Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block.|
+|+assert_no_difference(expressions, message = nil, &amp;block)+ |Asserts that the numeric result of evaluating an expression is not changed before and after invoking the passed in block.|
|+assert_recognizes(expected_options, path, extras={}, message=nil)+ |Asserts that the routing of the given path was handled correctly and that the parsed options (given in the expected_options hash) match path. Basically, it asserts that Rails recognizes the route given by expected_options.|
|+assert_generates(expected_path, options, defaults={}, extras = {}, message=nil)+ |Asserts that the provided options can be used to generate the provided path. This is the inverse of assert_recognizes. The extras parameter is used to tell the request the names and values of additional request parameters that would be in a query string. The message parameter allows you to specify a custom error message for assertion failures.|
|+assert_response(type, message = nil)+ |Asserts that the response comes with a specific status code. You can specify +:success+ to indicate 200, +:redirect+ to indicate 300-399, +:missing+ to indicate 404, or +:error+ to match the 500-599 range|