Skip to content

Commit 77e1a99

Browse files
committed
minor edits
1 parent 3c6c240 commit 77e1a99

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

railties/guides/source/testing.textile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ $ rake db:test:load
229229

230230
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.
231231

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.
233233

234234
h5. Rake Tasks for Preparing your Application for Testing
235235

236236
|_.Tasks |_.Description|
237237
|+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|
239239
|+rake db:test:load+ |Recreate the test database from the current +schema.rb+|
240240
|+rake db:test:prepare+ |Check for pending migrations and load the test schema|
241241
|+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.
512512
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:
513513

514514
<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]
518518

519519
# Because you can't use assigns[:something] for historical reasons:
520-
assigns["something"] assigns(:something)
520+
assigns["something"] assigns(:something)
521521
</ruby>
522522

523523
h4. Instance Variables Available

0 commit comments

Comments
 (0)