Skip to content
This repository
Browse code

minor edits

  • Loading branch information...
commit 77e1a99970c8bd454beaae502d4379309402afa5 1 parent 3c6c240
Vijay Dev authored January 17, 2011

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  railties/guides/source/testing.textile
12  railties/guides/source/testing.textile
Source Rendered
@@ -229,13 +229,13 @@ $ rake db:test:load
229 229
 
230 230
 Above +rake db:migrate+ runs any pending migrations on the _development_ environment and updates +db/schema.rb+. +rake db:test:load+ recreates the test database from the current +db/schema.rb+. On subsequent attempts, it is a good idea to first run +db:test:prepare+, as it first checks for pending migrations and warns you appropriately.
231 231
 
232  
-NOTE: +db:test:prepare+ will fail with an error if +db/schema.rb+ doesn't exists.
  232
+NOTE: +db:test:prepare+ will fail with an error if +db/schema.rb+ doesn't exist.
233 233
 
234 234
 h5. Rake Tasks for Preparing your Application for Testing
235 235
 
236 236
 |_.Tasks                         |_.Description|
237 237
 |+rake db:test:clone+            |Recreate the test database from the current environment's database schema|
238  
-|+rake db:test:clone_structure+  |Recreate the test databases from the development structure|
  238
+|+rake db:test:clone_structure+  |Recreate the test database from the development structure|
239 239
 |+rake db:test:load+             |Recreate the test database from the current +schema.rb+|
240 240
 |+rake db:test:prepare+          |Check for pending migrations and load the test schema|
241 241
 |+rake db:test:purge+            |Empty the test database.|
@@ -512,12 +512,12 @@ After a request has been made by using one of the 5 methods (+get+, +post+, etc.
512 512
 As is the case with normal Hash objects, you can access the values by referencing the keys by string. You can also reference them by symbol name, except for +assigns+. For example:
513 513
 
514 514
 <ruby>
515  
-  flash["gordon"]               flash[:gordon]
516  
-  session["shmession"]          session[:shmession]
517  
-  cookies["are_good_for_u"]     cookies[:are_good_for_u]
  515
+flash["gordon"]               flash[:gordon]
  516
+session["shmession"]          session[:shmession]
  517
+cookies["are_good_for_u"]     cookies[:are_good_for_u]
518 518
 
519 519
 # Because you can't use assigns[:something] for historical reasons:
520  
-  assigns["something"]          assigns(:something)
  520
+assigns["something"]          assigns(:something)
521 521
 </ruby>
522 522
 
523 523
 h4. Instance Variables Available

0 notes on commit 77e1a99

Please sign in to comment.
Something went wrong with that request. Please try again.