diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-12-19 14:27:43 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-19 14:27:43 +0000 |
commit | c3f53f412cd170fc295b46e48aa81837ad15ec83 (patch) | |
tree | 79de6effe9874f3d17eada3666c13b5f76fa537c /railties/doc/guides/source/testing_rails_applications.txt | |
parent | 89b75814045e811d52b19278ae27b5f45c6d9dd6 (diff) | |
download | rails-c3f53f412cd170fc295b46e48aa81837ad15ec83.tar.gz rails-c3f53f412cd170fc295b46e48aa81837ad15ec83.tar.bz2 rails-c3f53f412cd170fc295b46e48aa81837ad15ec83.zip |
Merge docrails
Diffstat (limited to 'railties/doc/guides/source/testing_rails_applications.txt')
-rw-r--r-- | railties/doc/guides/source/testing_rails_applications.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/railties/doc/guides/source/testing_rails_applications.txt b/railties/doc/guides/source/testing_rails_applications.txt index b492fdb300..cb77829fc1 100644 --- a/railties/doc/guides/source/testing_rails_applications.txt +++ b/railties/doc/guides/source/testing_rails_applications.txt @@ -226,18 +226,18 @@ Above +rake db:migrate+ runs any pending migrations on the _developemnt_ environ NOTE: +db:test:prepare+ will fail with an error if db/schema.rb doesn't exists. -==== Rake Tasks for Preparing you Application for Testing == +==== Rake Tasks for Preparing your Application for Testing ==== [grid="all"] ------------------------------------------------------------------------------------- -Tasks Description ------------------------------------------------------------------------------------- -+rake db:test:clone+ Recreate the test database from the current environment's database schema -+rake db:test:clone_structure+ Recreate the test databases from the development structure -+rake db:test:load+ Recreate the test database from the current +schema.rb+ -+rake db:test:prepare+ Check for pending migrations and load the test schema -+rake db:test:purge+ Empty the test database. ------------------------------------------------------------------------------------- +|------------------------------------------------------------------------------------ +|Tasks Description +|------------------------------------------------------------------------------------ +|+rake db:test:clone+ Recreate the test database from the current environment's database schema +|+rake db:test:clone_structure+ Recreate the test databases from the development structure +|+rake db:test:load+ Recreate the test database from the current +schema.rb+ +|+rake db:test:prepare+ Check for pending migrations and load the test schema +|+rake db:test:purge+ Empty the test database. +|------------------------------------------------------------------------------------ TIP: You can see all these rake tasks and their descriptions by running +rake \-\-tasks \-\-describe+ |