You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: railties/guides/source/testing.textile
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -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:
0 commit comments